Pascal Precht
Articles by Pascal Precht:
CD is triggered when:
// polyfills.ts
import 'zone.js/dist/zone';
// main.ts
platformBrowserDynamic().bootstrapModule(
AppModule,
{ ngZone: 'noop' }
).catch(err => console.log(err));
constructor(private ref: ChangeDetectorRef) {
ref.detach();
setInterval(() => {
this.ref.detectChanges();
}, 10 * 1000);
}