66 < meta name ="viewport " content ="width=device-width ">
77 < title > Angular bootstrap-select</ title >
88
9- < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/ bootstrap/3.3.0 /css/bootstrap.min.css ">
9+ < link rel ="stylesheet " href ="../bower_components/ bootstrap/dist /css/bootstrap.min.css ">
1010 < link rel ="stylesheet " href ="../bower_components/bootstrap-select/dist/css/bootstrap-select.min.css " rel ="stylesheet ">
11-
12- < script src ="../bower_components/jquery/dist/jquery.js "> </ script >
13- < script src ="../bower_components/bootstrap-select/dist/js/bootstrap-select.js "> </ script >
14- < script src ="../bower_components/angular/angular.js "> </ script >
15-
16- < script src ="../src/angular-bootstrap-select.js "> </ script >
1711</ head >
1812< body >
1913 < div role ="main ">
2014 < div class ="container ">
21- < script >
22- ( function ( ) {
23- var selectDemoApp = angular . module ( 'selectDemoApp' , [
24- 'angular-bootstrap-select' ,
25- 'angular-bootstrap-select.extra'
26- ] ) ;
15+ <!-- Extras -->
16+ < section id ="extras " ng-controller ="ExtrasCtrl ">
17+ < h1 > Extras</ h1 >
18+ < div >
19+ < h3 > Not popup without dropdownToggle directive</ h3 >
20+ <!-- This extra directive provide dropdown open and close without loading bootstrap.js -->
21+ < select class ="selectpicker ">
22+ < option value =""> Select one</ option >
23+ < option > Mustard</ option >
24+ < option > Ketchup</ option >
25+ < option > Relish</ option >
26+ </ select >
2727
28- selectDemoApp . controller ( 'SimpleUsageCtrl' , function ( $scope , $timeout ) {
29- $scope . model = '' ;
30- $scope . colors = [ 'Mustard' , 'Ketchup' , 'Relish' ] ;
31- $scope . repeater = [
32- { title : 'one' } ,
33- { title : 'two' } ,
34- { title : 'three' }
35- ] ;
36- $scope . selectWithOptionsIsVisible = true ;
37- } ) ;
38- } ) ( ) ;
39- </ script >
28+ < h3 > Popup with dropdownToggle directive</ h3 >
29+ < dropdown-toggle >
30+ < select class ="selectpicker ">
31+ < option value =""> Select one</ option >
32+ < option > Mustard</ option >
33+ < option > Ketchup</ option >
34+ < option > Relish</ option >
35+ </ select >
36+ </ dropdown-toggle >
37+ </ div >
38+ </ section >
4039
4140 <!-- Simple usage -->
42- < section id ="simple-usage " ng-controller ="SimpleUsageCtrl " dropdown-toggle >
41+ <!-- < section id="simple-usage" ng-controller="SimpleUsageCtrl" class=" dropdown-toggle" >
4342 <h1>Simple usage</h1>
4443
4544 <div>
45+ <h3>Works with simple select</h3>
46+ <div>Model value: <code>{{model || "''"}}</code></div>
47+ <select selectpicker="" ng-model="model">
48+ <option value="">Select one</option>
49+ <option>Mustard</option>
50+ <option>Ketchup</option>
51+ <option>Relish</option>
52+ </select>
53+
4654 <h3>Works with ngIf</h3>
4755 <div>Model value: <code>{{model || "''"}}</code></div>
4856 <div>Show/Hide <input type="checkbox" ng-model="selectWithOptionsIsVisible"></div>
@@ -56,15 +64,6 @@ <h3>Works with ngIf</h3>
5664 </select>
5765 </div>
5866
59- < h3 > Works without ngIf</ h3 >
60- < div > Model value: < code > {{model || "''"}}</ code > </ div >
61- < select selectpicker ="" ng-model ="model ">
62- < option value =""> Select one</ option >
63- < option > Mustard</ option >
64- < option > Ketchup</ option >
65- < option > Relish</ option >
66- </ select >
67-
6867 <h3>Works with optgroup</h3>
6968 <div>
7069 <select selectpicker ng-model="model">
@@ -85,7 +84,7 @@ <h3>Works with ngOptions</h3>
8584 <select selectpicker ng-model="model" ng-options="c as c for c in colors">
8685 <option value="">Select one</option>
8786 </select>
88-
87+
8988 <h3>Works with ngRepeat</h3>
9089 <div ng-repeat="select in repeater">
9190 <label>{{select.title}} {{model}}</label>
@@ -94,9 +93,15 @@ <h3>Works with ngRepeat</h3>
9493 </select>
9594 </div>
9695 </div>
97- </ section >
96+ </section> -->
9897 </ div >
9998 </ div >
10099
100+ < script src ="../bower_components/jquery/dist/jquery.js "> </ script >
101+ < script src ="../bower_components/bootstrap-select/dist/js/bootstrap-select.js "> </ script >
102+ < script src ="../bower_components/angular/angular.js "> </ script >
103+
104+ < script src ="../src/angular-bootstrap-select.js "> </ script >
105+ < script src ="select-demo-app.js "> </ script >
101106</ body >
102107</ html >
0 commit comments