Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular click add class active and remove from others

listClick(event, newValue) {
    console.log(newValue);
    this.selectedItem = newValue;  // don't forget to update the model here
    // ... do other stuff here ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #click #add #class #active #remove
ADD COMMENT
Topic
Name
9+8 =