To configure the default back button action, you need to override the backButtonClick () method of the NavBar component.
Step 1: In the "custom-class.ts" import the Navbar component. Create auxMethod to override the default behavior and called in your ionViewDidLoad method.
import { Navbar } from 'ionic-angular'; import { ViewChild } from '@angular/core'; export class myCustomClass { @ViewChild(Navbar) navBar: Navbar; ionViewDidLoad() { this.setBackButtonAction() }
This code has been tested in ionic 3.
source share