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

Listen for change event for bound values

Open DaveWM opened this issue 10 years ago • 9 comments

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

DaveWM avatar Nov 06 '14 15:11 DaveWM

Coverage Status

Coverage increased (+0.43%) when pulling 9aed91157dad457b0d548ad6701d4e10836e60da on DaveWM:master into 3c5e2ec435f279869fbc18bab8ddb38f6429438d on grevory:master.

coveralls avatar Nov 06 '14 16:11 coveralls

Would appreciate to have that feature also :)

YouriT avatar Nov 25 '14 17:11 YouriT

Coverage Status

Coverage increased (+0.58%) when pulling 98fd70b60d5316d23b001b80a2119dba4175ac15 on DaveWM:master into 3c5e2ec435f279869fbc18bab8ddb38f6429438d on grevory:master.

coveralls avatar Nov 27 '14 12:11 coveralls

Further to your comment @DaveWM, thanks for the PR, I'll take a look later.

a8m avatar Dec 31 '14 11:12 a8m

Are changes still required here? I wanted to start work on this, but saw the PR already existes for this functionality.

tiagoroldao avatar Mar 16 '15 16:03 tiagoroldao

+1 for this feature.

bnbon avatar Mar 30 '15 00:03 bnbon

+1 too :)

windom avatar May 29 '15 13:05 windom

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.

STRML avatar Jul 15 '15 22:07 STRML

+1 as well

eperret avatar Oct 31 '15 03:10 eperret