Search code examples
angularjsangular-ui-bootstrapangular-ui-typeahead

how to hide selected items in suggestion list in ui.bootstrap.typeahead angularjs


I add each selected items in suggestion list in ui.bootstrap.typeahead in ng-click angularjs event to another list to show to users(these users are selected), Now I want don't suggest these selected items in suggestion list.

what can I do?

enter image description here


Solution

  • Filter the source to not selected items from where you read typeahead data and on select assign selected item f.e: item.selected = true and on remove the selected item assign false.