Тёмный
No video :(

Passing Parameters to Route | Angular Routing | Angular 13+ 

procademy
Подписаться 53 тыс.
Просмотров 47 тыс.
50% 1

We have learned how to define a route in angular using Angular Routing. In a route we can also pass a parameter whose value can change dynamically. For example, let's say we want to display the details of a course. For that, we will have to redirect user to the CourseDetails Page.
In the Course details page, we want to display the course detail based on the ID of the course. For that, we can pass an ID parameter to the route whose value can change dynamically, and then retrive the value of that parameter from the Route and use it in our application.
The parameter which we pass to a route is called as route parameter. In this lecture you will learn:
1. What is a Route Parameter?
2. How to pass a Route parameter to a Route?
3. How to retrieve the value of Route parameter from the route.
To work with Route parameters, we also need angular to inject an instance of ActivatedRoute class.
DOWNLOAD SECTION SOURCE CODE HERE: drive.google.c...

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@ankitbaage9380
@ankitbaage9380 Год назад
I don't know much about you bro. However the way you are explaining things is awesome. I follow a couple of more youtubers who teach these things and they are really contributing like you. Atleast whatever I am and whatever I am doing, your contribution is beyond words. I was unemployed and didn't had money for basic necessities. I was privileged to have only a cellphone and internet. I was ready to study for 24 hrs however noone helped me. No institute, no friends, nothing. Thank you for all these materials and your time. God bless you. I am employed and now I could say i have seen things changing in a moment. But for that moment i struggled alot and your videos were lamp for me.thriving . I got the job with decent package. because of you people like me can do the impossible. God bless you.
@abdulaziz7013
@abdulaziz7013 2 года назад
Excellent, I really love to see your angular content as you teaching just mind-blowing sir, It's really helping a lot. THANK YOU SIR
@karthikreddyboppidi5960
@karthikreddyboppidi5960 Год назад
Hi Sir,the way explained the concepts were superb, One clarification required that while we are injecting the course service in the course component,where the instance is created in the providers array of the component meta data.is-it provided in the root component. Thanks in advance
@danielhorodenko8587
@danielhorodenko8587 Год назад
This helped me so much, thank you.
@cholasimmons
@cholasimmons Год назад
i found your tutorial and new instantly that it would solve my problem 😎 Could you please make a video on how to dynamically populate breadcrumbs depending on the route you're at? (including route children)
@hanslumbridge5349
@hanslumbridge5349 Год назад
The accent told you he would be a great programmer lol
@cholasimmons
@cholasimmons Год назад
@@hanslumbridge5349 looool 🤩
@ariel_chess
@ariel_chess 19 дней назад
Is this still the recommended way to do it?
@harshavardhanmadasi2177
@harshavardhanmadasi2177 11 месяцев назад
Great tutorial
@sergiocerda946
@sergiocerda946 2 года назад
Simple video Excellent. Thanks
@karansanjeev5990
@karansanjeev5990 Год назад
hi can u pls share this projects drive link? the one in desc is blank
@gautamigaikwad4631
@gautamigaikwad4631 2 года назад
How to get the api response from the other component in the course component where details are shown
@bestchannel8056
@bestchannel8056 10 месяцев назад
creating activeRoute: ActivatedRoute outside the constructor doesn't work why?
@BSwiftTheCEO
@BSwiftTheCEO Год назад
Thank you sir!
@florentyangue4054
@florentyangue4054 2 года назад
thank you very much...
@vinithkumare3137
@vinithkumare3137 2 года назад
Thank you brother
@NAEL4SLR
@NAEL4SLR Год назад
Thank you
@Karthik22ng
@Karthik22ng Год назад
super.
@user-oo7qj5ej6r
@user-oo7qj5ej6r 2 года назад
good
@CenterV
@CenterV 2 года назад
Sir Source Code Please .
@TheKidrock1988
@TheKidrock1988 Год назад
ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)
@procademy
@procademy Год назад
I guess you are using Angular 14...there is few changes made in angular 14 on how we use dependency injection in Angular
@gravitymusic1595
@gravitymusic1595 Год назад
you must put providers at module level or component level ...example ( providers : [courseComponent],)
@mohammedumar9588
@mohammedumar9588 2 года назад
source code please sir in the description directive source code is there please provide source code of Routing Please sir
@procademy
@procademy 2 года назад
Here is the github link to download the source code: github.com/manojjha86/complete-angular-13-course.git
@mohammedumar9588
@mohammedumar9588 2 года назад
@@procademy Thank You Sir.
Далее
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Просмотров 2,7 млн
Angular Router - The Basics and Beyond
11:47
Просмотров 129 тыс.
What’s new in Angular v18
20:08
Просмотров 118 тыс.
Route Parameters - Angular (Tutorial #21)
14:40
Просмотров 33 тыс.
Subjects in RxJS | Observables | Angular 12+
16:14
Просмотров 54 тыс.
Senior Angular Developer Interview (theory)
41:57
Просмотров 17 тыс.