Creating Relevant Components and Modules

In this final section, we'll create an application where we will implement all the concepts discussed in the previous lessons. We'll implement services, routing, state management using services, etc.

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

create-components

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 components related to the product feature.

ng generate module product
ng generate module cart

Create some components inside the cart module and product module like the cart component, product-list component, product-card component.

This looks like this:

Get hands-on with 1000+ tech skills courses.