angular-local-storage
angular-local-storage copied to clipboard
Listen for change event for bound values
When you call localStorageService.bind, an event listener is now registered that is fired when the value of the local storage key changes, which updates the value and calls scope.$apply(). fixes #166
Coverage increased (+0.43%) when pulling 9aed91157dad457b0d548ad6701d4e10836e60da on DaveWM:master into 3c5e2ec435f279869fbc18bab8ddb38f6429438d on grevory:master.
Would appreciate to have that feature also :)
Coverage increased (+0.58%) when pulling 98fd70b60d5316d23b001b80a2119dba4175ac15 on DaveWM:master into 3c5e2ec435f279869fbc18bab8ddb38f6429438d on grevory:master.
Further to your comment @DaveWM, thanks for the PR, I'll take a look later.
Are changes still required here? I wanted to start work on this, but saw the PR already existes for this functionality.
+1 for this feature.
+1 too :)
This won't actually work because storage
events are only fired on other windows/tabs, not the window/tab originating the event. I've modified the PR to listen to internal events to do this instead, which seems to be working fine.
+1 as well