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

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Cleaning up code and updating the router

Cleaning up code and updating the router

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

Start my 1-month free trial

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…

Contents