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