This project is a simple standalone module that provides support for select 2 with native angular js implementation for dropdowns. Uses ng-model with ng-options. Can be
- Uses ng-model with ng-options angular js implementation angular select 2 doc
- Requires only to add "jq-select2" directive to select declaration
- Fast and lightweight
To get you started you can simply clone the angular-select2 repository and install the dependencies: Clone the angular-seed repository using [git][git]:
git clone https://github.com/Hopeisnear/angular-select2.git
Install via Bower
bower install jq-select2
- Include select2 lib with select2 styles or bootstrap styles
- select.js:
<script src="bower_components/select2/select2.min.js"></script>
- select.css:
<link rel="stylesheet" href="bower_components/select2/select2.css">
- or select2-bootstrap.css:
<link rel="stylesheet" href="bower_components/select2-bootstrap-css/select2-bootstrap.css">
- select.js:
- Add the
jq.select2
module as a dependency:angular.module("myApp", ["jq.select2"]);
Live examples available under at http://hopeisnear.github.io
- Install Node.js and NPM (should come with)
- Run:
npm install
gulp test
There is none, use as you wish