Ionic2 navigation & circular depencies

This is awesome! I’m seeing that the ionic navigation system, while very intuitive and easy to use, lends itself to lots of headaches with circular dependencies as your app gets larger. So it would be tough to build larger, more complex apps without some work arounds some how.

As of ionic 2.2.0, you IonicApp doesn’t give you all that it used to. So I’m using the following:

import { App } from from 'ionic-angular';

rootPage(page:string, params?: {}) {
     this.app.getRootNav().setRoot(this.pages[page], params);
 }

nextPage(page: string, params?: {}) {
  this.app.getRootNav().push(this.pages[page], params);
}

closeMenu isn’t needed.