angular-mobile-nav icon indicating copy to clipboard operation
angular-mobile-nav copied to clipboard

experimental implementation of page stack

Open drunkhacker opened this issue 11 years ago • 3 comments

I had difficulty of losing any dynamic content after new page is pushed. Because this library doesn't manage pages with stack, it simply replace mobile-view with new page.

By adding simple array variable containing pushed DOM information, now we can remember all the pages pushed in this navigation bar.

I know this implementation is creepy and buggy, but hope it'll inspire other guys to improve this structure. Thanks.

drunkhacker avatar Nov 13 '13 13:11 drunkhacker

Niveau approach, you should Limit the Stack in Order to prevent memory wasting

wzr1337 avatar Nov 13 '13 14:11 wzr1337

Nice approach I mean :)

wzr1337 avatar Nov 13 '13 14:11 wzr1337

@wzr1337 Thank you. I found that angular ui provides similar stack structure in $modal service. It's worth to take a look.

drunkhacker avatar Nov 14 '13 04:11 drunkhacker