Commit 5e12516 1 parent 1b10d9c commit 5e12516 Copy full SHA for 5e12516
File tree 3 files changed +6
-5
lines changed
directives/main-controller
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 30
30
// do NOT call it by yourself
31
31
var setViewAttribute = function ( ) {
32
32
33
- $ ( $element ) . attr (
33
+ angular . element ( $element ) . attr (
34
34
'view' ,
35
35
path . getCurrentViewName ( )
36
36
) ;
Original file line number Diff line number Diff line change 72
72
73
73
self . setCurrent = function ( view ) {
74
74
self . currentKey = view || 'home' ;
75
- // if(rootScope.mainController.setViewAttribute){
76
- // rootScope.mainController.setViewAttribute();
77
- // }
75
+ rootScope . mainController . setViewAttribute ( ) ;
78
76
} ;
79
77
80
78
self . getPaths = function ( ) {
Original file line number Diff line number Diff line change 9
9
'ViewHomeController' ,
10
10
11
11
function (
12
- path
12
+ path ,
13
+ navigationBarFactory
13
14
) {
14
15
15
16
path . setCurrent ( 'home' ) ;
16
17
18
+ navigationBarFactory . setTitle ( path . getCurrent ( ) . label ) ;
19
+
17
20
}
18
21
) ;
19
22
You can’t perform that action at this time.
0 commit comments