fix(angular): disable change detection detach

This commit is contained in:
Manu Mtz.-Almeida
2018-12-05 22:23:19 +01:00
committed by Manu MA
parent 945dd2610b
commit 68e26192a5
12 changed files with 71 additions and 24 deletions

View File

@@ -25,6 +25,9 @@ export class ModalExampleComponent implements OnInit {
}
ionViewWillEnter() {
if (this.onInit !== 1) {
throw new Error('ngOnInit was not called');
}
NgZone.assertInAngularZone();
this.willEnter++;
}