isteven / angular-multi-select

A multi select dropdown directive for AngularJS. Allows you to use HTML tags and CSS in the data. Requires only AngularJS and nothing else.
isteven.github.io/angular-multi-select
MIT License
1.08k stars 518 forks source link

How to remove duplicate values from iSteven Multi select Dropdown? #551

Open binita12345 opened 6 years ago

binita12345 commented 6 years ago

I am using isteven/angular-multi-select to select multiple category at a time, but getting same name of categories in iSteven Multi select list. if category name is one or more times in Angular Datatables or MongoDB, so getting all same category in dropdown. I want to remove repeater categories name, How can I Do it? screenshot from 2018-01-31 09 47 37

pankajparkar commented 6 years ago

Isteven multiselect doesn't provide this functionality by default. But @binita12345 for this case I'd suggest you to retrieve unique value from API itself.

OR

Create value set in javascript before passing values collection to isteven input-model attribute.