From the course: Building Angular and ASP.NET Core Applications

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Generating components and services

Generating components and services

- [Narrator] Before we start developing our Angular app, let us first create all the components and services that we will use. A component in Angular represents a single feature. So this means that in our case, we need a component for each feature like showing all books, creating, deleting, etc. And we will also create a service, which we are going to use to interact with our web API. So let's go to visual code and see this in action. Before we create anything in here, let us install the angular CLI which is an Angular Command Line Interface used for creating components, services, etc. For that, right-click in here and then go to open in terminal and then write mpm install-g to install in globally at Angular/cli. In here, press Enter. And we see that the Angular CLI was installed. If you want to go from here, just type in here ng-v and we see that the Angular CLI was installed successfully. Now, let us go inside the…

Contents