I have created multiselect dropdown using ng-multiselect-dropdown with ngModel I wanted to bind data through API and I have to exclude the list of selected items from the dropdown
Asked
Active
Viewed 547 times
1 Answers
0
in html:
<ng-multiselect-dropdown #sampleSelect
[settings]="dropdownSettings"
[data]="samples"
[(ngModel)]="selectedSamples">
</ng-multiselect-dropdown>
in typescript:
samples = [];
selectedSamples = [];
dropdownSettings: IDropdownSettings;
@ViewChild('sampleSelect') sampleSelect;
getSamples(): void {
const data = (data get from sever and changed after recieved)
this.sampleSelect.data = data;
}

Mojtaba Nejad Poor Esmaeili
- 700
- 1
- 6
- 12