mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 06:25:12 +00:00
Remove unnecessary assignment (dependency injection handles this)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user