angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

Changing page / url keeps storage?

Open interludic opened this issue 9 years ago • 4 comments

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

interludic avatar Feb 05 '16 04:02 interludic

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.

rajkumarpb avatar Feb 05 '16 09:02 rajkumarpb

So how would one preserve each tabs variables?

interludic avatar Feb 13 '16 13:02 interludic

@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?

g2graman avatar Feb 18 '16 00:02 g2graman

@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.

rajkumarpb avatar Feb 18 '16 04:02 rajkumarpb