File tree 3 files changed +18
-5
lines changed
3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ <h1><a ui-sref="login">Login</a></h1>
28
28
< ul class ="right ">
29
29
< li class ="active "> < a href ="# "> Right Button Active</ a > </ li >
30
30
< li class ="has-dropdown ">
31
- < a href ="# "> Right Button Dropdown </ a >
31
+ < a href ="# "> Right Button Drxopdown </ a >
32
32
< ul class ="dropdown ">
33
- < li > < a href =" # "> First link in dropdown</ a > </ li >
33
+ < li > < a ui-sref =" home "> First link in dropdown</ a > </ li >
34
34
< li class ="active "> < a href ="# "> Active link in dropdown</ a > </ li >
35
35
</ ul >
36
36
</ li >
@@ -44,5 +44,15 @@ <h1><a ui-sref="login">Login</a></h1>
44
44
</ nav >
45
45
< div ui-view >
46
46
</ div >
47
+ < ul class ="side-nav " role ="navigation " title ="Link List ">
48
+ < li role ="menuitem "> < a href ="# "> Link 1</ a > </ li >
49
+ < li role ="menuitem "> < a href ="# "> Link 2</ a > </ li >
50
+ < li role ="menuitem "> < a href ="# "> Link 3</ a > </ li >
51
+ < li role ="menuitem "> < a href ="# "> Link 4</ a > </ li >
52
+ </ ul >
53
+ < div class ="switch ">
54
+ < input id ="exampleCheckboxSwitch " type ="checkbox ">
55
+ < label for ="exampleCheckboxSwitch "> </ label >
56
+ </ div >
47
57
</ body >
48
58
</ html >
Original file line number Diff line number Diff line change 1
1
var app = angular . module ( 'myApp' , [ 'ui.router' ] )
2
2
3
3
. controller ( 'listCtrl' , [ '$scope' , function ( $scope ) {
4
- $scope . items = [ ] ;
4
+ $scope . items = [ 'test' , 'hello' , 'viktor' , '511' ] ;
5
5
$scope . addItem = function ( item ) {
6
6
$scope . items . push ( item ) ;
7
7
}
Original file line number Diff line number Diff line change 1
1
2
2
< div class ="row " ng-controller ="listCtrl ">
3
3
< h1 > Todo</ h1 >
4
- < input type ="text " placeholder ="What do you have to do? " ng-model ="text " ng-enter ="addItem(text) ">
4
+ Search: < input type ="text " ng-model ="search " placeholder ="Search phrase ">
5
+ Add Item: < input type ="text " placeholder ="What do you have to do? " ng-model ="text " ng-enter ="addItem(text) ">
5
6
< button class ="button success tiny " ng-click ="addItem(text) "> Add Item</ button >
6
7
< ul >
7
- < li ng-repeat ="item in items "> {{item}}
8
+ < li ng-repeat ="item in items | filter:search | orderBy:'name' "> {{item}}
8
9
< button class ="label tiny alert " confirmed-click ="removeItem($index) " ng-confirm-click ="Are you sure you want to delete the project? "> Remove Item</ button >
10
+ < br >
11
+ < br >
9
12
</ li >
10
13
</ ul >
11
14
</ div >
You can’t perform that action at this time.
0 commit comments