i am using the ng-multiselect-dropdown with angular 14. i want to use this module with singleSelection without initial data i mean without [(ngModel)] to show placeholder firstly but i got error.this is my code below this is my html code
<ng-multiselect-dropdown
[placeholder]="'search the country'" [settings]="dropdownSettings"
[data]="dropdownList">
</ng-multiselect-dropdown>
this is typescript code
and i got this error when selecting an option from dropdown
any help will be highly appreciated.
You could alternativly wrap it in a Angular Reactive Form as following:
HTML:
Typescript:
As per their demo found here:
https://nileshpatel17.github.io/ng-multiselect-dropdown/
Hope this will help you.