Creating Relevant Components and Modules
Explore creating components and modules in Angular using the CLI, including generating feature modules like Product and Cart, organizing routable and nested components, and refactoring routing setup. This lesson helps you structure your e-commerce app’s architecture efficiently to prepare for defining router states and advancing development.
We'll cover the following...
We'll cover the following...
Let’s start with creating our application using the integrated CLI. If you choose to set it up locally, follow the steps given at the end of the lesson.
Creating required components and modules
Let’s first create the basic components using:
ng generate component home
ng generate component profile
We want a separate feature in our application for the products-listing, cart, etc. So, let’s create a ProductModule and CartModule, wherein we will create all the ...