dictionary - How caching of pages use ionic 2? -
can save page status if moved new page?
i have map , objects on map. want if map loaded, state saving if moved new page , come back. that's high-loaded process (+ loading image again). use lealetjs
thanks!
i solved problem follows:
i change app architecture - add 2 tabs (list elements page , map markers). , when opened map page use tabs - page loaded , it's ok!
explanation of work ionic: if use navctrl.pop()
- current page deleted memory. if can not use tabs - use navctrl.push()
new before page. , when user want return before page - navctrl.pop()
- delete current page, before page cached. is, user's point of view - it's on previous page, , point of view of programmer - new same page being created.
and if user wants move before->before page, use navctrl.popto(index of desired page - can use this.navctrl.popto(this.navctrl.getbyindex([yourpagenumber]));
Comments
Post a Comment