Keep Tabs Open In Background


#1

Hi !
How can I keep a tab opened while I’m switching to another tab ?
I have four tabs. and one of them needs internet connection and when you switch to another tab all downloaded contents will disappear and user must download them again.
views :
tab > product list > product detail > product show (a selected part of it)


#2

Use a service to store the data that you want to keep active, then just refresh that data inside the service when you jump to the page so it loads the cached version to start with.

http://www.thinkster.io/angularjs/9jfpSmbx1j/angularjs-sharing-data-between-controllers


#3

hmm I knew that but I was hoping that there is a value which if we make it true tabs will be cached automatically :smile: (i’m soooooo lazy!) but thanks anyway