ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: navController.push wont fire

Open ErkoKnoll opened this issue 10 years ago • 23 comments

Type: bug

Ionic Version: 2.x (beta2)

Platform: android 5.1 webview

When trying to push a new page via navController after having popped the same page via navController then pushed page won't display.

The page that is being popped and then pushed again is a tabbed page.

Here is the sample code: this._navController.pop({ animate: false }).then(() => { this._navController.push(TabsPage); });

If just simply pushing the same page again without trying to close the previous one then it works, but then also the old page underneath is not closed.

I also noticed that when using device back button on tabbed page then it won't pop the page as the back button in header does but actually minimizes the app and when resumes then the app is restarted.

Same logic used to work with beta1 release but not with tabbed page but with simple page.

ErkoKnoll avatar Mar 03 '16 15:03 ErkoKnoll

@wli No problem! I will keep this issue open for now.

jgw96 avatar May 02 '16 16:05 jgw96

@jgw96 it indeed does not give a problem in a new project. After updating our npm packages ( angular2 from .13 to .15) and recreating our view (wouldn't work with our original files but a complete copy paste did the trick), our problem was solved and the navController works again.

Thanks for the help!

wouterDumon avatar May 03 '16 08:05 wouterDumon

Great to hear @wouterDumon! Thanks for using Ionic!

jgw96 avatar May 03 '16 14:05 jgw96