No provider for NavController
Forced that thing to work in next way
constructor(
protected app: App
) {
...
get navCtrl(): NavController {
return this.app.getActiveNav();
}
I solved this by a workaround. I was reading and i found this post asking sometinhg similiar.
So i just change my app.html into this:
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
And my app.component into this:
@Component({
templateUrl: 'app.html'
})
export class MyApp {
@ViewChild('content') nav: Nav;
rootPage: any = Home;
...
}
Now when i redirect in my home page i dont have any problems.