frontend-tutorial-framework/src/app/app.component.ts

21 lines
588 B
TypeScript
Raw Normal View History

2017-12-18 16:52:10 +00:00
import { Component, OnInit } from '@angular/core';
import { WebSocketService } from './websocket.service';
import { FSMUpdateService } from './fsmupdate.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
2017-12-18 16:52:10 +00:00
styleUrls: ['./app.component.scss']
})
2017-12-18 16:52:10 +00:00
export class AppComponent implements OnInit {
title = 'app';
2017-12-18 16:52:10 +00:00
constructor(private webSocketService: WebSocketService, private fsmUpdateService: FSMUpdateService) {}
2017-12-18 16:52:10 +00:00
ngOnInit() {
this.webSocketService.connect();
2018-01-11 15:12:54 +00:00
this.webSocketService.send('reset', '');
this.fsmUpdateService.init();
2017-12-18 16:52:10 +00:00
}
}