web-dave / angular-starter-v2

6 stars 3 forks source link

Set book-preview ChangeDetectionSrategy to OnPush #22

Open web-dave opened 7 years ago

web-dave commented 7 years ago
web-dave commented 7 years ago

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
})