matsura / ng2-dual-list-box

A dual list box component for Angular 4
http://ng2-duallistbox-demo.surge.sh/
28 stars 20 forks source link

Set values in the list of selected elements ng2-dual-list-box #17

Closed oanillar closed 6 years ago

oanillar commented 6 years ago

I need to start the view with elements in both list and not only in the list of available elements. <ng2-dual-list-box [data]="items" (onAvailableItemSelected)="onAvailableItemSelected($event)" (onSelectedItemsSelected)="onSelectedItemsSelected($event)" (onItemsMoved)="onItemsMoved($event)"></ng2-dual-list-box>

matsura commented 6 years ago

@oanillar In the readme I described that you can use ngModel or formControlName for this.

vidyambala commented 6 years ago

Set values in the selected items not working. Tried both ngModel and formControlName.