Why is NavController and navPop etc. still present in Ionic 4 but without function? Do I understand something wrong?
For example. This import. The NavController
. Not usable, but it’s available in the Ionic 4 framework. Why?
import { NavController } from '@ionic/angular';
Also here some docs about the ion-nav
element. I guess it’s the replacement for ion-navbar
. And navPop
on a button in the header to close modals.
I wondering why using ion-nav
because the official docs explains using ion-toolbar
for it. See https://ionicframework.com/docs/api/header
Please, can someone enlighten me?