frontend-tutorial-framework/src/app/app.component.ts
2018-01-26 16:10:39 +01:00

21 lines
588 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { WebSocketService } from './websocket.service';
import { FSMUpdateService } from './fsmupdate.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
title = 'app';
constructor(private webSocketService: WebSocketService, private fsmUpdateService: FSMUpdateService) {}
ngOnInit() {
this.webSocketService.connect();
this.webSocketService.send('reset', '');
this.fsmUpdateService.init();
}
}