Skip to content

Document Ionic root page & page navigation #613

@brody4hire

Description

@brody4hire

From #594 (comment) by @rodineijf:

Hi @brodybits, by default the attribution of rootPage on ionic 2 is on declaration of var rootPage. I can solve my problem moving the rootPage attribution to the platformReady on app.component

initializeApp() {
this.platform.ready().then(() => {

  this.rootPage = MyPage;
  StatusBar.styleDefault();
  Splashscreen.hide();
});
}

With a quick search I think the following resources may be relevant:

I think the root cause is the requirement to wait for the deviceready event in Cordova. This has been a stumbling block in so many cases and is especially bad for working with Ionic and other Angular apps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions