swipeBackEnabled not working, throws error

When i try to use $ionicConfigProvider.swipeBackEnabled(false); to disable swipeback on iOS i get this error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to:
TypeError: undefined is not a function

But i can use other $ionicConfigProvider options without any problems.

It should be $ionicConfigProvider.views.swipeBackEnabled(false);

3 Likes