These are chat archives for angular/angular-2-ionic-2

Nov 2017
Han van Venrooij
Nov 16 2017 13:07

Hi guys,

Does anyone know what the best way is to disable the iOS swipe back gesture?

I've tried using <ion-navbar swipeBackEnabled="false"> but that didn't work
Nov 16 2017 13:25
I'm using this.menuCtrl.swipeEnable(false); in platform.ready()
Han van Venrooij
Nov 16 2017 13:32
Ah okay, I'll give that a go :)
That's not just for opening the side menu? o.0
Nov 16 2017 13:35
He is saying that when you get to that component you do t want a menu on to do that
Like you are 5 components and routes deep. You can do swipeEnable false
Like on ngOnInit
Nov 16 2017 13:46
@irundaia argh my mistake it is :D I actually have this working: <ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>