Tell me what is the advantage of caching the views in Ionic apps?
Submitted by: MuhammadIonic by default caches up to ten views, which improves performance and also maintains different states in the views at the same time. For example, the cache can maintain scroll position in the views or active state of buttons.
Caching can be disabled per view by using cache: false in UI-router's state config, like in the following example:
$stateProvider.state('myState', {
cache: false,
url : '/myUrl',
templateUrl : 'my-template.html'
})
Caching can be also disabled globally, by setting maxCache to 0:
$ionicConfigProvider.views.maxCache(0);
Submitted by: Muhammad
Caching can be disabled per view by using cache: false in UI-router's state config, like in the following example:
$stateProvider.state('myState', {
cache: false,
url : '/myUrl',
templateUrl : 'my-template.html'
})
Caching can be also disabled globally, by setting maxCache to 0:
$ionicConfigProvider.views.maxCache(0);
Submitted by: Muhammad
Read Online Hybrid Application Developer Job Interview Questions And Answers
Top Hybrid Application Developer Questions
☺ | How to render a 5000 item list in Ionic, without affecting scroll performance? |
☺ | Tell me in broad terms, how do you deploy an Ionic project onto a device? |
☺ | Tell us what do you need to develop in PhoneGap? |
☺ | How to architect PhoneGap applications? |
☺ | How to upgrade PhoneGap? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |