This project was generated with Angular CLI version 15.1.1.
this project is a store that display variety of products and you can view each products details. you can also add the wanted products with the chosen quantity. and you can check the cart which will display all your added product, their quantities, and the total price. in the same page you can also fill out your personal information to checkout then we will take you to a confirmation page wher you can get back the product list to make additional purchases
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
run npm install
- added condition to check if the product is already added
if product is not added it will add it then show this alert:
if the product is already there it will not add it and it will show this alert:
- added 3 interfaces for userinfo, product, and cart and adjusted the code accordingly