How to disable swipe back gesture globally in ionic 4 angular project
I solved it by adding [swipeGesture]="false"
to the ion-router-outlet
as described here: https://github.com/ionic-team/ionic/issues/16441
At first, I made the mistake of adding it to all ion-router-outlet
s in my tabs.html
file. That didn't work. Instead, you only have to add it to the ion-router-outlet
in the app.component.html
file. That did the trick for me.
app.component.html
<ion-app>
<ion-router-outlet [swipeGesture]="false"></ion-router-outlet>
</ion-app>
I'm using ionic version 4.0.0-beta.17
.