Здесь - решение вашей проблемы
Вы можете использовать ChangeDetectionStrategy
как
import { Component, ChangeDetectionStrategy } from '@angular/core';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})