So there are a few instances where I would want to navigate directly to a page in the sidemenu, breaking the nav stack.
class MyApp {
@ViewChild(Nav) nav: Nav;
// make HelloIonicPage the root (or first) page
rootPage: any = BrowsePage;
pages: Array<{title: string, component: any}>;
constructor(
public platform: Platform,
public menu: MenuController) {
this.initializeApp();
// set our app's pages
this.pages = [
{ title: 'Find Events', component: BrowsePage },
{ title: 'Create Event', component: CreatePage },
{title: 'My Events', component: MyEventsPage},
{title: 'Attending', component: EventsAttendingPage}
];
}
If I’m in the BrowsePage and press a button to go to an event
public attend (e) {
this.EventService.attending(e._id).then(() => {
this.AlertService.toast("You're in!");
this.navCtrl.???('EventsAttendingPage');
}
}
How could I navigate directly to the EventsAttendingPage from the App ViewChild?