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
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
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.
WATCH NEXT: Angular Unit Testing Course - All That You Need to Know About Testing - ruclips.net/video/bv9z_UfSqgM/видео.htmlsi=WVzOWtdQUZWEbqsz
every second is valuable. thanks!
I just came across this at work and then your video popped up. Perfect timing!
Hope you enjoyed it!
Thanks. Great video. I finally got the purpose of injection Tokens.
Glad it helped
Cool, I like the way you explained this
Glad you liked it!
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
We use injection token to register things in angular. you can't just use constant there.
Finally i understand what is "provide"
Glad to hear that!
NOW i get this! thanks!
Great!
Another great video! Thanks. How do Injection Tokens work with services in a stand alone environment with no NgModules?
The same way. You just register it in component and not in module.
Merci!
Thank you so much for your support. It means a lot to me!
Great explanations ,, thank you
You are welcome!
I enjoy your videos but the text editor you use drives me crazy :p
Sorry about that :)
@@MonsterlessonsAcademy I mean I also highly appreciate your skill with that. I can see you're super proficient with this way of coding :)
@@MonsterlessonsAcademy how do you replace the below code using the new injet() method?
@Inject(SOME_TOKEN) private _service: Service
If you may make a video about ngrx entities related data normalization
Thanks for the idea. I will add it to the list.
Nicely explained 😀
Thank you 🙂
Great explanation!
Glad it was helpful!
Thanks!
Welcome!
i love you man
Thanks!
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
It is just a description not a value
@@MonsterlessonsAcademy so why do we need it. And thanks for making the best video on Token i have seen, very informative
Please make a video for ssr auth
I will add it to the list of ideas for future videos.
❤
Thanks
can you please provide me the use case when to use it?
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.
nice
thanks
gosh Angular really trying to invent everything