devconcept / ng-shopping-cart

🛒 An Angular component library to create shopping carts
https://devconcept.github.io/ng-shopping-cart/
MIT License
45 stars 53 forks source link

Resetting items in localStorage #4

Closed Alessandroinfo closed 5 years ago

Alessandroinfo commented 5 years ago

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

Alessandroinfo commented 5 years ago

Fixed, the issue was that my custom ItemCart dont have correct fromJSON implementation.