Remove unused ngOnInit

This commit is contained in:
Kristóf Tóth 2018-02-16 15:24:44 +01:00
parent e42d831138
commit c4c875ae3d
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
export class AppComponent {
constructor() {}
ngOnInit() {}
}

View File

@ -24,6 +24,7 @@ export class MessagesComponent implements OnInit {
this.websocketService.connect();
this.websocketService.observeAnchor<Message>('message').subscribe(
(event) => {
console.log(event.data);
this.messages.push(event.data);
event.data.message = this.convert(event.data.message);
}