gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.33k stars 461 forks source link

Issue #34 Fixed? #136

Open dmr07 opened 9 years ago

dmr07 commented 9 years ago

https://github.com/gsklee/ngStorage/issues/34

Have this been fixed? @egilkh seems to have closed the issue without addressing the problem.

It is extremely irritating that ngStorage does not update with native javascript methods. It seems backwards to me that if I want to change a simple login boolean in another tab, I have to import the entire angular library.

egilkh commented 9 years ago

It does use the eventlistener from the the storage API. If that does propagate changes between tabs then you should see changes to prefixed keys end back up in ngStorage.

If you have a better solution we are all ears.