Create Chosen dropdowns with ease in angular.
Check out the docs at: http://adityasharat.github.io/angular-chosen/
Get the latest version for angular 1.3.x here
Get the version for angular 1.2.x here
How to use:
- Include this module in your angular app.
angular.module('myModule', ['angular.chosen']);
Just add 'chosen' as an attribute to a <select>
to convert it to a chosen drop down.
- options : options for the drop down.
- model : to what is the chosen binded to.
<select chosen options="properties"
ng-model="property.name"
ng-options="p.name as p.name for p in properties">
</select>