mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 06:22:56 +00:00 
			
		
		
		
	Remove unused ngOnInit
This commit is contained in:
		@@ -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() {}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user