-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
22 lines (19 loc) · 1.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html ng-app="Chosen">
<head>
<script data-require="jquery@*" data-semver="2.0.3" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<link data-require="[email protected]" data-semver="1.0.0" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/chosen/1.0/chosen.min.css" />
<script data-require="[email protected]" data-semver="1.0.0" src="//cdnjs.cloudflare.com/ajax/libs/chosen/1.0/chosen.jquery.min.js"></script>
<script data-require="[email protected]" data-semver="1.0.0" src="//cdnjs.cloudflare.com/ajax/libs/chosen/1.0/chosen.proto.min.js"></script>
<script data-require="[email protected]" data-semver="1.3.0-beta.19" src="https://code.angularjs.org/1.3.0-beta.19/angular.js"></script>
<link rel="stylesheet" href="style/style.css" />
<script src="js/app.js"></script>
</head>
<body ng-controller="MainCtrl as main">
<div>
<select data-placeholder="Select States" class="form-control" chosen="main.allStates" ng-model="main.states" multiple="" ng-options="state.name + ' (' + state.abbreviation + ')' for state in main.allStates"></select>
<button ng-click="main.clearSelect()" type="button" class="btn btn-primary">Clear Select</button>
<div ng-repeat="state in main.states">- {{state.name}}, {{state.abbreviation}} </div>
</div>
</body>
</html>