What should the openPage(p) function look like if I want to change the root in the ion-nav instead on pushing another page on the navigation stack? How do I pass in params in such a situation?
PS: I want to keep the sidemenu intact, just want to close it and load a new page in the menu’s content along with some parameters.
What I wanted was to tap on the menu and change the child view. So I cannot use push or setRoot on the primary navCtrl. I had to get a reference to Child View.
export class MenuPage {
@ViewChild('mycontent') childNavCtrl: NavController;