You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static fields are not supported for now. From what I can remember, it'd need additional decorator on the class... I'd recommend you to just use a regular singleton service.
Hello.
I'm using ngx-store in a class with static variables
@LocalStorage('hsky') private static husky: string = null;
but if I set the variable with
... this.husky = 'Hey!'; ...
the value in the local storage only changes the first time it is set, every other assignment doesn't work.
The LocalStorageService.set method correctly update the local storage value though.
(new LocalStorageService()).set('hsky', 'Hey hey!');
The text was updated successfully, but these errors were encountered: