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 - Confirm a form & display message if form is valid with JQuery -

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

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