select - Multiselect in Angular 2 -


here code: want use onselect type triggering instead of change, welcome.

<select multiple (change)="setselected($event.target)">    <option  *ngfor="let accesskey of accesskeys" [ngvalue] = "accesskey">           {{accesskey.name}}</option> </select> 

you can simpply use primeng's multiselect see here more info


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -