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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -