Disable animation on ion-navbar back button


#1

When coding pop’s there’s an option to do animate:false but how do you disable animate on the build in back button in the ion-navbar?


#2

Here you go:

@ViewChild(Navbar) navbar: Navbar;

ionViewDidEnter() {
   this.navbar.backButtonClick = () => this.navController.pop({animate: false});
}

#3

Ow I just found a way to disable animations globally so for my project that works better. For anyone else who needs it: