title: How to save cart in Angular?
body: <p>I'm new to Angular and i'm trying to make a simple ecommerce where the user is able to add items to cart, view them and make a checkout.</p>
  <p>So i have 3 components, the products list, cart and checkout and a cart service which manage all cart operations like adding items, removing and calculating the cart total.</p>
  <p>I was wondering which would be the best solution to save the cart when the user closes the browser and reopen it as initially the user orders will be managed anonymously so without any registrations.</p>
  <p>Is still the best solution to use localstorage and to use cookies when there will be a registration?</p>