Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ng model on change

onChange(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: #ng #model #change
ADD COMMENT
Topic
Name
6+5 =