swipeBackEnabled="false" in Ionic 2

I can’t figure out how to turn off swipe to go back. I have a map that this interferes with. I have tried following the docs but the below example does not turn off swipe to go back even though canSwipeBack() returns false.

<ion-nav id="nav" [root]="rootPage" swipeBackEnabled="false"></ion-nav>

Any help would be greatly appreciated.


Anybody have an idea on this? Its really the only think holding me back right now.

If anyones else has a problem here is the solution.



The solution - to add swipeBackEnabled="false" on each <ion-tab> worked for me in Ionic 3 as well when I had ion-tabs in the app.