I have tried every possible outcome. But can't get this to work. I am new to web-development, please help out.
I pulled ui-select from github. Added the necessary files (CSS & jS) into my index
but still can't get it working. I have read the docs as well. I have also ngSanitize
running.
A simple field like this won't appear.
<ui-select ng-model="person.selected" theme="bootstrap">
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in people | filter: $select.search">
<div ng-bind-html="item.name | highlight: $select.search"></div>
<small ng-bind-html="item.email | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>