From the course: Building Angular and ASP.NET Web API Apps
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Configure routing and navigation
From the course: Building Angular and ASP.NET Web API Apps
Configure routing and navigation
- [Lecturer] In the last part, we did create all the application components. Now in this part, you'll learn how to set up routing in an Angular app and how to navigate between components when you, for example, click on a link, or even just change the application URL. Now per definition, routing is the mechanism that allows navigation between different components by mapping a URL path to a specific component. To better understand routing and navigation, let us go to our project. Now when we created the app, by default, there was this app.routes.ts. In this file, we need to basically define all the route mappings. We define the path, and then whenever user navigates to that path, we do define the component that is going to be rendered. Then this file gets used here in the app.config.ts and then the app.config gets used in the main.ts. And here in the main.ts, we basically said that whenever the app is bootstrapped or is started, we need to load the app.component as the first component…
Contents
-
-
-
-
-
Create an new Angular project7m 44s
-
(Locked)
Define and creating empty components6m 6s
-
(Locked)
Configure routing and navigation11m 19s
-
(Locked)
Create the transaction Service with HTTP methods11m 6s
-
(Locked)
Design the application header and footer12m 48s
-
(Locked)
Design the list page13m 32s
-
(Locked)
Load data from admin API16m 13s
-
(Locked)
Creating a form21m 4s
-
(Locked)
Create a New transaction by submitting data with HTTP POST9m 3s
-
(Locked)
Update transaction data with HTTP PUT18m 23s
-
(Locked)
Delete a transaction with HTTP DELETE3m 24s
-
-
-
-