indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

How to use a simple array of options #3

Closed debonair closed 9 years ago

debonair commented 9 years ago

Consider this

1.$scope.options = ['option1', 'option2']; 2.$scope.options [{label: 'option1', value:'option1'},{label: 'option1', value:'option1'}];