javascript - Caching view in ionic not working for first time -
i working on app building ionic framework.
have 3 tabbed view.
- list
- filter
- tab3
the scenario first time when go list state filter state , select 1 item list , go list detail page , click on button detail, time go list page list reloads means state reloads.
but if second time list doesn't reload , state cache has been saved properly.
it happens first time. don't know reason can me this?
.state('app', { url: '/app', abstract: true, templateurl: 'menu.html', controller: 'appctrl' }) .state('app.parenttab', { url: '/parent', cache: true, views: { 'menucontent': { templateurl: 'parent.html', controller: 'parentctrl' } } }) .state('app.parenttab.list', { url: '/list', cache: true, views: { 'search-units': { templateurl: "list.html", controller: 'listctrl' } }, }) .state('app.parenttab.listfilter', { url: '/listfilter', authrequired: false, cache: true, views: { 'search-filter': { templateurl: "filter.html", controller: 'filterctrl' } }, }) .state('app.parenttab.tab3', { url: '/tab3', cache: false, views: { 'search-map': { templateurl: "tab3.html", controller: 'tab3ctrl' } }, }) .state('app.detail', { url: '/detail', cache: false, views: { 'menucontent': { templateurl: "details.html", controller: 'detailsctrl' } }, })
Comments
Post a Comment