This project was generated with Angular CLI version 13.1.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
https://lsc-essential-products-web.azurewebsites.net
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
- Install Visual Studio Code (IDE) https://code.visualstudio.com/
- Install NodeJS https://nodejs.org/en/ Suggestions: install only recommended LTS version
- Install Angular CLI
- open command prompt
- use this command and install Angular CLI
npm install -g @angular/cli
- Open the folder location in command prompt.
- Create new project using command
ng new <project_name>
E.g.ng new lsc-essential-products
- Choose the options as per the demo and finally, the npm package will be installed.
- To run the app, use command
ng serve
- To create a component using Angular CLI command, use the below command.
ng g c <component_name>
E.g.ng g c home
.g
denotes generate,c
denotes component- you can also use command as
ng generate component home
- Data binding with more examples
- Separated header component and brought top navigation
- Created models based on API response and using static data we built home component. Home component has products displayed. We also did create spinner component.
- Created shared module and refactored product view component to reuse it across different pages.
- Creating product feature module and various component to reuse.
- Use of HTTP service to fetch real data from API and refactor existing home component to replace static data 8.Input() usage to pass data. 9.Routing
- Output usage for product page
- Product Detail page development
- Manage Product - Complete CRUD operation for Product using Reactive Forms
API used to develop this project is below
https://essentialproducts-api.azurewebsites.net/swagger/index.html