I’m using ionic 1.3.1
in my app.
In the app.config
module, i set $ionicConfigProvider.templates.maxPrefetch(0)
to disable prefetch, set $ionicConfigProvider.views.maxCache(6)
.
But it seems not working. All the templates in the $stateProvider.state
still loading when then app is bootstrap.
And the views cached in the dom would be 10 or even more.
code in config:
$ionicConfigProvider.views.swipeBackEnabled(true);
$ionicConfigProvider.navBar.alignTitle('center');
$ionicConfigProvider.tabs.position('bottom');
$ionicConfigProvider.backButton.text('');
$ionicConfigProvider.backButton.icon('icon icon-arrow-left');
$ionicConfigProvider.backButton.previousTitleText(false);
$ionicConfigProvider.templates.maxPrefetch(2);
$ionicConfigProvider.views.maxCache(6);

Could someone help me?