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

Angular Universal error #11

Open abelpuentes opened 3 years ago

abelpuentes commented 3 years ago

Issue checklist

When we use the library with Angular Universal, Angular Universal doesn't work.

I'm submitting a...

Environment

Angular version: 10.1.4

NgShoppingCart version: 1.0.0

Current behavior

Angular Universal failed because the use of window without check if is the browser or not.

Expected behavior

Check if can use the variable window

Steps to reproduce

Create an angular project with angular universal using this library.