WATCH NEXT: Angular Unit Testing Course - All That You Need to Know About Testing - kzbin.info/www/bejne/mKecq5KLm7ikna8si=WVzOWtdQUZWEbqsz
@wire_head10 Жыл бұрын
I just came across this at work and then your video popped up. Perfect timing!
@MonsterlessonsAcademy Жыл бұрын
Hope you enjoyed it!
@yuraprotsuk Жыл бұрын
Thanks. Great video. I finally got the purpose of injection Tokens.
@MonsterlessonsAcademy Жыл бұрын
Glad it helped
@user-eh9qe9ob2k Жыл бұрын
Cool, I like the way you explained this
@MonsterlessonsAcademy Жыл бұрын
Glad you liked it!
@knowa130 Жыл бұрын
I enjoy your videos but the text editor you use drives me crazy :p
@MonsterlessonsAcademy Жыл бұрын
Sorry about that :)
@knowa130 Жыл бұрын
@@MonsterlessonsAcademy I mean I also highly appreciate your skill with that. I can see you're super proficient with this way of coding :)
@richarddefortune13294 ай бұрын
@@MonsterlessonsAcademy how do you replace the below code using the new injet() method? @Inject(SOME_TOKEN) private _service: Service
@chengxiaoxia8046 Жыл бұрын
Merci!
@MonsterlessonsAcademy Жыл бұрын
Thank you so much for your support. It means a lot to me!
@ishep123 Жыл бұрын
NOW i get this! thanks!
@MonsterlessonsAcademy Жыл бұрын
Great!
@stickyamp59964 ай бұрын
Finally i understand what is "provide"
@MonsterlessonsAcademy4 ай бұрын
Glad to hear that!
@sivakumartadisetti38859 ай бұрын
Thanks for the explanation. But what is the advantage of injecting the constant instead of just export and importing the constant into the component files? Just curious to know
@MonsterlessonsAcademy9 ай бұрын
We use injection token to register things in angular. you can't just use constant there.
@habibbellia260711 ай бұрын
Great explanations ,, thank you
@MonsterlessonsAcademy11 ай бұрын
You are welcome!
@priyank887 ай бұрын
Nicely explained 😀
@MonsterlessonsAcademy7 ай бұрын
Thank you 🙂
@yevhen3934 Жыл бұрын
Great explanation!
@MonsterlessonsAcademy Жыл бұрын
Glad it was helpful!
@user-ul6sz5hd3h3 ай бұрын
i love you man
@MonsterlessonsAcademy3 ай бұрын
Thanks!
@tmsmiffs Жыл бұрын
Another great video! Thanks. How do Injection Tokens work with services in a stand alone environment with no NgModules?
@MonsterlessonsAcademy Жыл бұрын
The same way. You just register it in component and not in module.
@MultiWarrr Жыл бұрын
If you may make a video about ngrx entities related data normalization
@MonsterlessonsAcademy Жыл бұрын
Thanks for the idea. I will add it to the list.
@harish.d2 ай бұрын
❤
@MonsterlessonsAcademy2 ай бұрын
Thanks
@harshkuddu4386 Жыл бұрын
Thanks!
@MonsterlessonsAcademy Жыл бұрын
Welcome!
@MaheshKumar-bg5re9 ай бұрын
Please make a video for ssr auth
@MonsterlessonsAcademy9 ай бұрын
I will add it to the list of ideas for future videos.
@anmolsingh4969 Жыл бұрын
nice
@MonsterlessonsAcademy Жыл бұрын
thanks
@slowmoshotsPZ9 ай бұрын
can you please provide me the use case when to use it?
@MonsterlessonsAcademy9 ай бұрын
It happens automatically for you every time when you register service. Injection token allow you to write custom code of using/defining services for your needs. I you don't see use cases for your project you might not have any.
@user-oh4cn7ub2m Жыл бұрын
Can you explain why do we need string to be provided in InjectionToken, it is just description, in your case, you left it blank, so why we need it at all? can we use this string or it is just description
@MonsterlessonsAcademy Жыл бұрын
It is just a description not a value
@user-oh4cn7ub2m Жыл бұрын
@@MonsterlessonsAcademy so why do we need it. And thanks for making the best video on Token i have seen, very informative