Create initial version of application

This commit is contained in:
Bálint Bokros
2017-12-18 17:52:10 +01:00
parent 9ccb152f0f
commit f82f9a55ae
23 changed files with 360 additions and 25 deletions
+12 -3
View File
@@ -1,10 +1,19 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { WebSocketService } from './websocket.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
styleUrls: ['./app.component.scss']
})
export class AppComponent {
export class AppComponent implements OnInit {
title = 'app';
constructor(private webSocketService: WebSocketService) {
this.webSocketService = webSocketService;
}
ngOnInit() {
this.webSocketService.connect();
}
}