Search
 
SCRIPT & CODE EXAMPLE
 

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);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript set input value by class name 
Javascript :: javascript max length with elipsis 
Javascript :: check frequency of string in array js 
Javascript :: how to check connected devices in react native 
Javascript :: detect fullscreen mode 
Javascript :: prevent reload javascript 
Javascript :: how to set view engine in express 
Javascript :: how to remove trailing space in string js 
Javascript :: props.history.push with data 
Javascript :: validador de telefone javascript 
Javascript :: nuxt 18 mountend route push 
Javascript :: convert base64 string to byte array javascript 
Javascript :: javascript week day name 
Javascript :: js substring between two characters 
Javascript :: javascript remoev css class 
Javascript :: modify root in javascript 
Javascript :: how to filter through array extracting only numbers in js 
Javascript :: jest setImmediate is not defined 
Javascript :: format JSON code javascript 
Javascript :: object to query string javascript 
Javascript :: how to detect the keyboard keys in js 
Javascript :: get h1 text javascript 
Javascript :: how to remove the last character from a string in javascript 
Javascript :: bright green in javascript 
Javascript :: angular create component without test 
Javascript :: canvas fillrect 
Javascript :: get payable amount ethereum solidity 
Javascript :: Uncaught Error: "arc" is not a registered element. 
Javascript :: node json stringify 
Javascript :: made clickable url in js 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =