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
Post a Comment