mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:31:33 +00:00
Remove unnecessary assignment (dependency injection handles this)
This commit is contained in:
parent
f810df0d9d
commit
de77cfccff
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user