grevory / angular-local-storage

An AngularJS module that gives you access to the browsers local storage with cookie fallback
Other
2.83k stars 586 forks source link

Changing page / url keeps storage? #275

Open interludic opened 8 years ago

interludic commented 8 years ago

Hello,

i'm developing on chrome, on ios ipad

Recently when i change pages the local storage is displayed on the new page, even though the url has changed. is this standard operating procedure?

HArry

rajkumarpb commented 8 years ago

Yes it is. If you set the locaStorage for site somesite.com, no matter where you navigate, data will be there till you clear/remove it! Hope this helps.

interludic commented 8 years ago

So how would one preserve each tabs variables?

g2graman commented 8 years ago

@HarryBosh As @rajkumarpb said, storage with this library is meant to be persistent, and that kind of persistence depends on the storage type. I'm not sure I follow your question though. What exactly are you trying to do?

rajkumarpb commented 8 years ago

@HarryBosh What do you mean by "Preserve each tab variables?". You don't have to worry about that because data is already in localStorage. If possible, please explain your scenario so we can have faint idea of what you are trying to achieve.