Closed Alessandroinfo closed 5 years ago
Angular version: major.minor.patch 8.0.0
NgShoppingCart version: major.minor.patch 1.0.0
Browser: Name, Platform, Version
Platform: Name, Version
Node version: major.minor.patch 12.0.0
I've added the library in my angular project and work fine, but when i refresh the page the items values in localstorage are resetted, but the item in the array remain.
I've imported the module in the app module with root.
Fixed, the issue was that my custom ItemCart dont have correct fromJSON implementation.
Issue checklist
I'm submitting a...
Environment
Angular version: major.minor.patch 8.0.0
NgShoppingCart version: major.minor.patch 1.0.0
Browser: Name, Platform, Version
Platform: Name, Version
Node version: major.minor.patch 12.0.0
Current behavior
I've added the library in my angular project and work fine, but when i refresh the page the items values in localstorage are resetted, but the item in the array remain.
I've imported the module in the app module with root.
Expected behavior
Steps to reproduce