File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 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';
2828import main from './main/main.component';
2929import './app.constant';
3030import 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';< % } % >
3233
3334
3435import './app.< %= styleExt % > ';
@@ -56,10 +57,12 @@ angular.module('<%= scriptAppName %>', [
5657 footer,
5758 main,
5859 '< %= scriptAppName % > .constants',
59- socket,
60+ < % _ if ( filters . socketio ) { _ % >
61+ socket,< % } % >
6062 util
6163])
6264 .config(routeConfig)
65+ < % _ if ( filters . auth ) { _ % >
6366 .run(function($rootScope, $location, Auth) {
6467 'ngInject' ;
6568 // Redirect to login if route requires auth and you're not logged in
@@ -70,7 +73,7 @@ angular.module('<%= scriptAppName %>', [
7073 }
7174 } ) ;
7275 } ) ;
73- } );
76+ } )< % } % > ;
7477
7578angular
7679 .element(document)
You can’t perform that action at this time.
0 commit comments