Hey JavaScript talents, here at namshi.com, we are looking for you! Submit this coding challenge to [email protected] and we'll get back to you as soon as possible!
Your task is to implement a basic shopping cart for a website, following these basic rules:
- the cart needs to be implemented as an AngularJS service
- the cart should be retrieved from the localStorage, where it's stored under the key
cart
- every time an action is performed on the cart, it should be persisted on the localStorage
- the cart should only know about item IDs and their quantity