Daniel Kucal
Daniel Kucal
Why don't you want the values to be shared in tests, like it'll be in the app? I think you can set initial value in class constructor for the cases...
@BojanKogoj, I think you can fire sharedStorageService.clear() before each test to have a fresh state 🤔
Decorators are designed for singleton classes (like Angular's Components and Services). In your case, I'd go for one of the possible solutions: 1. Implement `OnDestroy` interface and call `User.ngOnDestroy` method...
There is some breaking change in Angular compiler between versions 4 and 5... I got the error when updated package to Angular 5 and tried to run it on project...
@emanuelet @VinceBT can you guys see if `v1.2.5` works for you with Angular 5? Thanks in advance
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.
Does it occur specifically in private mode?
How would you like to have this solved? I think the action will depend on the application, maybe we should allow to pass an error handler function...
1. Are you sure anything doesn't rewrite your data in local storage? 2. Which web browser do you use? 3. Please try it with session storage and let me know...
@AJMalik007 @monica11 I made it working with asynchronous data. Here are the steps: 1. We need a template variable on our select: `` 2. Then import it into our Component...