File tree 2 files changed +12
-5
lines changed
templates/app/client/app/main
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ export class Base extends YoBase {
48
48
to ( ) {
49
49
return this . filters . expect ? ').to' : '.should' ;
50
50
}
51
+
52
+ public ( ) {
53
+ return this . filters . ts ? 'public ' : '' ;
54
+ }
55
+ private ( ) {
56
+ return this . filters . ts ? 'private ' : '' ;
57
+ }
51
58
}
52
59
53
60
export class NamedBase extends Base {
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ import { SocketService } from '../../components/socket/socket.service';
9
9
styles : [ require ( './main.<%=styleExt%>' ) ] ,
10
10
} )
11
11
export class MainComponent implements OnInit < % if ( filters . socketio ) { % > , OnDestroy < % } % > {
12
- Http ;
13
12
< % _ if ( filters . socketio ) { - % >
14
13
SocketService ; < % } % >
15
14
awesomeThings = [ ] ;
16
15
< % _ if ( filters . models ) { - % >
17
16
newThing = '' ; < % } % >
18
17
19
- static parameters = [Http, SocketService];
20
- constructor(_Http_: Http< % if ( filters . socketio ) { % > , _SocketService_: SocketService< % } % > ) {
21
- this . Http = _Http_ ;
18
+ < % _ if ( filters . babel ) { - % >
19
+ static parameters = [ Http , SocketService ] ; < % } % >
20
+ constructor(< %= private ( ) % > http: Http< % if ( filters . socketio ) { % > , < %= private ( ) % > socketService: SocketService< % } % > ) {
21
+ this . Http = http ;
22
22
< % _ if ( filters . socketio ) { - % >
23
- this . SocketService = _SocketService_ ; < % } %>
23
+ this . SocketService = socketService ; < % } %>
24
24
}
25
25
26
26
ngOnInit ( ) {
You can’t perform that action at this time.
0 commit comments