Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select onchange pass option value in angular 6

<select (change)="onChange($event.target.value)">
    <option *ngFor="let i of devices">{{i}}</option>
</select>

onChange(deviceValue) {
    console.log(deviceValue);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #onchange #pass #option #angular
ADD COMMENT
Topic
Name
7+7 =