in the ionic bond doc, I have a NavController:
https://ionicframework.com/docs/api/navigation/NavController/
import { Component, ViewChild } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
template: '<ion-nav #myNav [root]="rootPage"></ion-nav>'
})
export class MyApp {
@ViewChild('myNav') nav: NavController
and in my ionic3 project installing "ionic launch myionic3" with the template "super", app.component.ts have:
...
import { Platform, Nav, Config } from 'ionic-angular';
...
export class MyApp {
public rootPage: any = LoginPage;
@ViewChild(Nav) nav: Nav;
...
why there are differences, the site of the ionic document is out of date?
source
share