I am new to Ionic2, and I am trying to build dynamic tabs based on current menu selection. I am just wondering how can I get current page using navigation controller.
...
export class TabsPage {
constructor(navParams: NavParams,navCtrl:NavController) {
//here I want to get current page
}
}
...
From api documentation I feel getActiveChildNav()
or getActive()
will give me the current page, but I have no knowledge on ViewController
/Nav
.
Any help will be appreciated. Thanks in advance.