When I implement life cycle methods like this:
private ionViewWillEnter() : void {
console.log('1 - ionViewWillEnter');
if (1 == 1) {
throw new Error('Error test');
}
console.log('2 - ionViewWillEnter');
}
private ionViewLoaded() : void {
console.log('1 - ionViewLoaded');
if (1 == 1) {
throw new Error('Error test');
}
console.log('2 - ionViewLoaded');
}
There is no indication of this error on the console. This is the printout I get:
1 - ionViewLoaded
1 - ionViewWillEnter
Do note that this worked on Ionic 2 Beta 6. This started after upgrading to Beta 10.
Current ionic info
as follows:
Cordova CLI: 6.2.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X Yosemite
Node Version: v6.3.1
Xcode version: Xcode 7.2.1 Build version 7C1002