Remove unnecessary assignment (dependency injection handles this)

This commit is contained in:
Kristóf Tóth 2018-01-26 15:24:40 +01:00
parent f810df0d9d
commit de77cfccff
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ import { WebSocketService } from './websocket.service';
export class AppComponent implements OnInit {
title = 'app';
constructor(private webSocketService: WebSocketService) {
this.webSocketService = webSocketService;
}
constructor(private webSocketService: WebSocketService) {}
ngOnInit() {
this.webSocketService.connect();