The humbling learning experience
- Naive impl, loop thru local list of products controller, ng-repeat
- Modules, services, factory products resource is available in CartCtrl even if not injected (singleton in the app)
- Routing, maps to one ng-view Just one view?? TemplateUrl el template
- Click handler, add to cart cart is a resource so we can share it between ctrls
- Proper add to cart, add in multiple places -> refactor add-method to cart object
- Node express backend, templateUrl in routes
- Service, fetch from backend api
// TODO checkout form // TODO directive for product