ngStorage icon indicating copy to clipboard operation
ngStorage copied to clipboard

Add freeze(obj) and unfreeze(obj) methods

Open misko321 opened this issue 8 years ago • 4 comments

The ngStorage by default watches for any changes of an added object, to update the localStorage. In some cases however (like this one: https://stackoverflow.com/questions/32856511/localstorage-value-got-change-with-fabric-js/32966097#32966097) it would be very helpful to disable the automatic updates by some sort of freeze(obj) method which would prevent the object from further modifications. Optionally, unfreeze(obj) method in turn would reenable the watch, and start syncing the object and its localStorage representation again.

misko321 avatar Oct 06 '15 09:10 misko321

+1 yes plz

btm1 avatar May 02 '16 20:05 btm1

Yes, also a +1 from me. This would greatly expand the flexibility of this essential module.

rhclayto avatar May 13 '16 21:05 rhclayto

+1

TomekSzymanski avatar Jun 10 '16 10:06 TomekSzymanski

+1

georgski avatar Jul 22 '16 16:07 georgski