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
From the course: Building Angular and ASP.NET Core Applications
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Angular key concepts2m 25s
-
(Locked)
Generating components and services4m 47s
-
(Locked)
Cleaning up code and updating the router7m 11s
-
(Locked)
Designing the Books page8m 10s
-
(Locked)
Reading data from Angular3m 39s
-
(Locked)
Designing the Create page9m 4s
-
(Locked)
Adding new data from Angular9m 50s
-
(Locked)
Designing the Book Details page7m 44s
-
(Locked)
Getting a single book from Angular3m 18s
-
(Locked)
Updating existing data from Angular9m 20s
-
(Locked)
Deleting data from Angular6m 45s
-
(Locked)
Handling errors in Angular12m 24s
-
-
-
-