Angular.js directive for selectize.js. New version based on @kbanman work.
-
Install from bower
bower install --save ng-selectize
-
Include styles
<link rel="stylesheet" href="bower_components/selectize/dist/css/selectize.css"> <link rel="stylesheet" href="bower_components/selectize/dist/css/selectize.bootstrap3.css">
-
Include scripts
<script src="bower_components/selectize/dist/js/standalone/selectize.min.js"></script> <script src="bower_components/ng-selectize/ng-selectize.min.js"></script>
Multiple select:
<input type="text" selectize="config" options="suggestions" ng-model="selected" ng-disabled="disabled"/>
Single value:
<select selectize="config" options="suggestions" ng-model="selected" ng-disabled="disabled"></select>
Selectize.js documentation for config
.