Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onchange event angular select

-------------For Two Way Data Binding-----------------
<select [ngModel]="selectedDevice" (ngModelChange)="onChange($event)" name="deviceText">
    <option [value]="i" *ngFor="let i of devices">{{i}}</option>
</select>

onChange(event){
selectedDevice=event;
  -----
  -----
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onchange #event #angular #select
ADD COMMENT
Topic
Name
6+6 =