Daniel Kucal
Daniel Kucal
You can try my fork https://github.com/DanielKucal/angular2-localstorage, let me know if it worked for you.
I've noticed the same behavior. As a fix I used `$event.stopPropagation()` method in `(click)` handler.
Hi @maxipeli, can you check if `@LocalStorage() data = '';` will also replace previously set value?
Hi Darron, the decorator keeps saved object as a proxy to reduce operations on the data. Maybe this is a subject for improvement (like additional configuration)... For now, I'd suggest...
Hi @kadosh1000, what is the exact error you are getting with Angular Universal?
Hello @moioo91120, thanks for using `ngx-store`! Why not to use polyfill for node.js enviroment? E.g. this one: https://github.com/capaj/localstorage-polyfill I haven't worked with Angular Universal, just wondering is it a solution......
@Gitelaus, it works with NativeScript when using https://github.com/NathanaelA/nativescript-localstorage, which polyfills storage functions in NS environment. I'd suggest all polyfilling your server environment, e.g. like presented here https://github.com/Angular-RU/angular-universal-starter/blob/master/server.ts#L11 I don't see...
I don't have an environment to test it at this moment. Why it would not work session storage? The goal of polyfills here is to just pretend that those globals...
It's on a TODO list. Can you provide an example how would you like it to work?
Do you use webpack? if your project uses the newest Angular version you can try different build (UMD / esm5 / esm2015) available on ngx-store v2.1+. If it doesn't work,...