1
- ( function ( ) {
2
- var controllerId = 'app.views.layout.header' ;
3
- angular . module ( 'app' ) . controller ( controllerId , [
4
- '$rootScope' , '$state' , function ( $rootScope , $state ) {
5
- var vm = this ;
6
-
7
- vm . languages = abp . localization . languages ;
8
- vm . currentLanguage = abp . localization . currentLanguage ;
9
-
10
- vm . menu = abp . nav . menus . MainMenu ;
11
- vm . currentMenuName = $state . current . menu ;
12
-
13
- $rootScope . $on ( '$stateChangeSuccess' , function ( event , toState , toParams , fromState , fromParams ) {
14
- vm . currentMenuName = toState . menu ;
15
- } ) ;
16
- }
17
- ] ) ;
1
+ ( function ( ) {
2
+ var controllerId = 'app.views.layout.header' ;
3
+ angular . module ( 'app' ) . controller ( controllerId , [
4
+ '$rootScope' , '$state' , function ( $rootScope , $state ) {
5
+ var vm = this ;
6
+
7
+ vm . languages = abp . localization . languages ;
8
+ vm . currentLanguage = abp . localization . currentLanguage ;
9
+
10
+ vm . menu = abp . nav . menus . MainMenu ;
11
+ vm . currentMenuName = $state . current . menu ;
12
+
13
+ $rootScope . $on ( '$stateChangeSuccess' , function ( event , toState , toParams , fromState , fromParams ) {
14
+ vm . currentMenuName = toState . menu ;
15
+ } ) ;
16
+
17
+ abp . event . on ( 'abp.notifications.received' , function ( userNotification ) {
18
+ console . log ( userNotification ) ;
19
+ } ) ;
20
+ }
21
+ ] ) ;
18
22
} ) ( ) ;
0 commit comments