bs-select
A consistently styled cross-browser and keyboard friendly select component
Requirements
Installation
- Install through npm
npm install --save bs-select
- Make sure your angular app depends upon 'bs-select':
angular.module('app', ['bs-select']);
Usage
Markup:
<bs-select ng-model="model" collection="collection"></bs-select>
scope.model = {
value: "Arizona",
key: "AZ"
};
scope.collection = [{
"value": "Alabama",
"key": "AL"
}, {
"value": "Alaska",
"key": "AK"
}, {
"value": "American Samoa",
"key": "AS"
}, {
"value": "Arizona",
"key": "AZ"
}, {
"value": "Arkansas",
"key": "AR"
}];
scope.collection = [
"Alabama",
"Alaska",
"American Samoa",
"Arizona",
"Arkansas",
];
Demo
http://beanstalkhq.github.io/bs-select/