Angular 12 tutorial #40 Dynamic Routing in angular

preview_player
Показать описание
In this angular 12 version video, we learn how to make Dynamic routing in angular 12. This video is made by anil Sidhu in the English language.

Start with Routing
Dynamic Routing
What is Dynamic Routing
How to pass data in the routing
How to get data from routing
Interview Question

Рекомендации по теме
Комментарии
Автор

Bro you save so many people's time, thank you very much for these great tutorials man!!!

zurajeladze
Автор

Yes we can .
{
component: UserComponent,
path: 'user/:id/:name',
},


sameera-dananjaya-wijerathna
Автор

I want to make dynamic routing like "management-college", "engineering-college", "medical-college". if URL match like "{{dynamicurl}}-college" then call same component . is it possible in angular routing? please suggest me. I am a regular viewer of "Code Step By Step
" thanks

shaniverma
Автор

Yes, we can change path in app-routing-module and also in our routinglink

bekirfurkankesgin
Автор

I have a question.
- Frist, I clicked on Peter. Then it shows the correct ID.
- Then I clicked on Sam. But it didn't show the correct ID.
Each time I need to go to Home or About page and click on a user.
Why it doesn't work when I click one user and then another user?
Thanks

chathurangamdk
Автор

can you please provide the code for first example you showed in the video

assanmathi
Автор

User with ID work but it created error for user page. You did not show it purposefully in this video.

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'user'
Error: Cannot match any routes. URL Segment: 'user'

rabinawal
Автор

Yes we can pass multiple parameters in url

dhawalparmar
Автор

Yes we can pass two variables in the url through routing in angular.

mohammadsaeed
Автор

I have to Refresh the Page for Print ID.

CADGaming