src/app/app.component.ts
changeDetection | ChangeDetectionStrategy.OnPush |
selector | app-root |
template |
|
import { Component, ChangeDetectionStrategy } from '@angular/core'
@Component({
selector: 'app-root',
template: '<router-outlet></router-outlet>',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent {}