skip to Main Content

Javascript – how to display dynamic data as selected in ng-select with search dropdown?

let options= [{value: 'a', id:1},{value:'b',id:2}]; let items=[]; i will be binding this data to ng select with search in ng-options <ng-select [items]="options" bindLabel="value" bindValue="value" [multiple]="true" placeholder="Search for..." [(ngModel)]="items" (change)="changeFn($event,false)" [hideSelected]="true" > <ng-template ng-option-tmp let-item="item" let-item$="item$" let-index="index" > <div class="row"> <span…

VIEW QUESTION
Back To Top
Search