Skip to content

Commit 88ec461

Browse files
author
Andrew Koroluk
committed
refactor(gen:client:main): use new TS private function
1 parent 17fea6c commit 88ec461

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: templates/app/client/app/main/main.component.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ import { SocketService } from '../../components/socket/socket.service';
88
styles: [require('./main.<%=styleExt%>')],
99
})
1010
export class MainComponent implements OnInit<% if(filters.socketio) { %>, OnDestroy<% } %> {
11-
Http;
1211
<%_ if(filters.socketio) { -%>
1312
SocketService;<% } %>
1413
awesomeThings = [];
1514
<%_ if(filters.models) { -%>
1615
newThing = '';<% } %>
1716

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;
2121
<%_ if(filters.socketio) { -%>
22-
this.SocketService = _SocketService_;<% } %>
22+
this.SocketService = socketService;<% } %>
2323
}
2424

2525
ngOnInit() {

0 commit comments

Comments
 (0)