- Setup the application:
npm install
- Run the application:
npm run start
- Create a ProductService that can be injected.
- NOTE For this task, move the array of products definition into this service from the products.component
- Create a method to be able to getAll products
- Create a method to be able to get a single product by id
- Create a method to be able to save a new or update an existing product
- Setup ProductsComponent to use ProductService
- Use the OnInit LifeCycle event
- Refactor handlers to be able to retrieve, post, update data from the service