web-dave/angular-starter-v2

Set book-preview ChangeDetectionSrategy to OnPush

Opened this issue · 1 comments

  • Set your book-preview ChangeDetectionSrategy to OnPush
  • Open Augury
  • find BookListComponent
  • change book[0].title

book-preview.component.ts

import { ChangeDetectionStrategy } from '@angular/core';

@Component({
  selector: 'book-preview',
  templateUrl: './book-preview.component.html',
  styleUrls: ['./book-preview.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})