File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ import footer from '../components/footer/footer.component';
28
28
import main from './main/main.component';
29
29
import './app.constant';
30
30
import util from '../components/util/util.module';
31
- import socket from '../components/socket/socket.service';
31
+ < % _ if ( filters . socketio ) { _ % >
32
+ import socket from '../components/socket/socket.service';< % } % >
32
33
33
34
34
35
import './app.< %= styleExt % > ';
@@ -56,10 +57,12 @@ angular.module('<%= scriptAppName %>', [
56
57
footer,
57
58
main,
58
59
'< %= scriptAppName % > .constants',
59
- socket,
60
+ < % _ if ( filters . socketio ) { _ % >
61
+ socket,< % } % >
60
62
util
61
63
])
62
64
.config(routeConfig)
65
+ < % _ if ( filters . auth ) { _ % >
63
66
.run(function($rootScope, $location, Auth) {
64
67
'ngInject' ;
65
68
// Redirect to login if route requires auth and you're not logged in
@@ -70,7 +73,7 @@ angular.module('<%= scriptAppName %>', [
70
73
}
71
74
} ) ;
72
75
} ) ;
73
- } );
76
+ } )< % } % > ;
74
77
75
78
angular
76
79
.element(document)
You can’t perform that action at this time.
0 commit comments