@@ -84,6 +84,7 @@ export class FirstPage {
8484 }
8585
8686 ionViewCanLeave ( ) {
87+ this . called . ionViewCanLeave ++ ;
8788 if ( this . canLeave ) {
8889 return true ;
8990 }
@@ -93,8 +94,6 @@ export class FirstPage {
9394 alert . addButton ( { text : 'Umm, ok' , role : 'cancel' , } ) ;
9495 alert . present ( ) ;
9596
96- this . called . ionViewCanLeave ++ ;
97-
9897 return false ;
9998 }
10099
@@ -132,44 +131,37 @@ export class FirstPage {
132131 this . navCtrl . push ( 'full-page' , { id : 8675309 , myData : [ 1 , 2 , 3 , 4 ] } , {
133132 animate : true ,
134133 animation : 'md-transition'
135- } ) . catch ( ( ) => {
136134 } ) ;
137135 }
138136
139137 pushAnother ( ) {
140138 this . navCtrl . push ( 'another-page' , null , {
141139 animate : true ,
142140 animation : 'wp-transition'
143- } ) . catch ( ( ) => {
144141 } ) ;
145142 }
146143
147144 pushTabsPage ( ) {
148- this . navCtrl . push ( 'tabs' ) . catch ( ( ) => {
149- } ) ;
145+ this . navCtrl . push ( 'tabs' ) ;
150146 }
151147
152148
153149 quickPush ( ) {
154- this . navCtrl . push ( 'another-page' ) . catch ( ( ) => {
155- } ) ;
150+ this . navCtrl . push ( 'another-page' ) ;
156151 setTimeout ( ( ) => {
157- this . navCtrl . push ( 'primary-header-page' ) . catch ( ( ) => {
158- } ) ;
152+ this . navCtrl . push ( 'primary-header-page' ) ;
159153 } , 150 ) ;
160154 }
161155
162156 quickPop ( ) {
163- this . navCtrl . push ( 'another-page' ) . catch ( ( ) => {
164- } ) ;
157+ this . navCtrl . push ( 'another-page' ) ;
165158 setTimeout ( ( ) => {
166- this . navCtrl . remove ( 1 , 1 ) . catch ( ( ) => {
167- } ) ;
159+ this . navCtrl . remove ( 1 , 1 ) ;
168160 } , 250 ) ;
169161 }
170162
171163 pop ( ) {
172- this . navCtrl . pop ( ) . catch ( ( ) => { } ) ;
164+ this . navCtrl . pop ( ) ;
173165 }
174166
175167 viewDismiss ( ) {
0 commit comments