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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -