you should not set a new root in nav in the constructor.
Wait until the current page is loaded via Ionics Page-Lifycylce events or with angular 2 component lifecycle events
import {NavController, Page} from 'ionic-angular';
import {HomePage} from '../../main/home/home.page';
@Page({
...
})
export class SignInPage {
constructor(navCtrl: NavController) {}
onPageDidEnter() {
this.navCtrl.setRoot(HomePage, {navbarCurrentPage: 'home'});
}
}
Sorry, I simplified code. In my case setRoot called outside of constructor. All my code works. The only thing that does not suit me is typescript compile error. Something wrong with type of HomePage.