Navigation Controller

Hi all,

I read the docs of https://ionicframework.com/docs/v2/api/navigation/NavController/
but I can’t seem to find what I’m looking for.
I’m trying to change the page without having the back button on top, when I use push
it brings the back button and than if I change tab it doesn’t go back.

is there any way to change the page without back button? or alternatively have the back button
but when I click on another tab it will go to the new tab and also back on the current tab?

thanks

import { Component } from '@angular/core';
import { NavController, ViewController } from 'ionic-angular';
@Component({
  selector: 'page-about',
  templateUrl: 'about.html'
})
export class AboutPage {
  constructor(
    public navCtrl: NavController,
    public viewCtrl: ViewController
  ) {}
  ionViewWillEnter() {
    this.viewCtrl.showBackButton(false)
  }
}

1 Like