Disable swipe to go back

Hi. I’m trying to disable swiping to go back on my app. I have some controllers with dragging functionality and I don’t want users to accidentally swipe to the previous page. I looked online and all of the answers I found were from 2015 or beta 11.

I tried

  template: `<ion-nav #rootNav [root]="rootPage" [swipeBackEnabled]="false"></ion-nav>`
in app.component.ts and that didn't work