File tree 1 file changed +5
-5
lines changed
templates/app/client/app/main
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,18 @@ import { SocketService } from '../../components/socket/socket.service';
8
8
styles : [ require ( './main.<%=styleExt%>' ) ] ,
9
9
} )
10
10
export class MainComponent implements OnInit < % if ( filters . socketio ) { % > , OnDestroy < % } % > {
11
- Http ;
12
11
< % _ if ( filters . socketio ) { - % >
13
12
SocketService ; < % } % >
14
13
awesomeThings = [ ] ;
15
14
< % _ if ( filters . models ) { - % >
16
15
newThing = '' ; < % } % >
17
16
18
- static parameters = [Http, SocketService];
19
- constructor(_Http_: Http< % if ( filters . socketio ) { % > , _SocketService_: SocketService< % } % > ) {
20
- this . Http = _Http_ ;
17
+ < % _ if ( filters . babel ) { - % >
18
+ static parameters = [ Http , SocketService ] ; < % } % >
19
+ constructor(< % private ( ) % > http: Http< % if ( filters . socketio ) { % > , < % private ( ) % > socketService: SocketService< % } % > ) {
20
+ this . Http = http ;
21
21
< % _ if ( filters . socketio ) { - % >
22
- this . SocketService = _SocketService_ ; < % } %>
22
+ this . SocketService = socketService ; < % } %>
23
23
}
24
24
25
25
ngOnInit ( ) {
You can’t perform that action at this time.
0 commit comments