From the course: Building Angular and ASP.NET Core Applications
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Cleaning up code and updating the router
From the course: Building Angular and ASP.NET Core Applications
Cleaning up code and updating the router
- [Instructor] Before we implement anything new, let us go to our Angular app and clean up the code from the existing components that we do not need. Also, let us update the router so it uses our components. Let's go to visual code, and see this in action. In here, go inside the ClientApp folder, because here we have all the Angular-related code, and then inside the source folder. Then here, go inside the app folder. We have a couple of components outside the components folder. So we have counter, fetch-data, home, and nav-menu. Now, we need the home component, so let us just drag and drop it inside the components folder. And then, click the Move button. Also we need the nav-menu, so let us drag and drop it as well. We don't need the counter and the fetch-data components. So, let us remove these components. And now let us go and change our router. For that, go inside the app.module.ts file, because this is our config…
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
-
-
-
-