angular-selectizejs
Component for using AngularJS with Selectize.js.
Install
Bower
Using$ bower install angular-selectizejs
NPM
Using$ npm install angular-selectizejs
Add the module dependency
angular;
Import the dependencies
It's important to import jquery script before angular.
Usage
Single Mode
Multiple Mode
Config
$scopeuserConfig = persist: false selectOnTab: true labelField: 'name' valueField: 'id' sortField: 'name' searchField: 'name';
Options
$scope { return id: 1 name: 'The user 1' id: 2 name: 'The user 2' id: 3 name: 'The user 3' ;};
or
$scope { return ;};
or
$scope { return ;};
Using your selectize instance
The value of the 'selectize' attribute is the reference to use selectize instance in your controller.
$scope;$scope;