mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(angular): disable change detection detach
This commit is contained in:
committed by
Manu MA
parent
945dd2610b
commit
68e26192a5
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user