-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listen for change event for bound values #167
base: master
Are you sure you want to change the base?
Conversation
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().
Would appreciate to have that feature also :) |
When local storage for a bound object is updated, it now extends the current object as opposed to overwriting it (this is to preserve unserializable properties, e.g. functions)
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 |
+1 as well |
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