Changedetection performance improvements.

This commit is contained in:
softsimon
2020-08-02 16:00:08 +07:00
parent fa2a995de6
commit e6fa274aca
5 changed files with 39 additions and 35 deletions

View File

@@ -1,10 +1,11 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { WebsocketService } from 'src/app/services/websocket.service';
@Component({
selector: 'app-start',
templateUrl: './start.component.html',
styleUrls: ['./start.component.scss']
styleUrls: ['./start.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class StartComponent implements OnInit {
constructor(