#66 Angular Injection Token | Angular Services & Dependency Injection | A Complete Angular Course

preview_player
Показать описание
In this lecture, we are going to learn what is an injection token and what is its importance. We are also going to learn how to inject a dependency using inject() method and few more topics.

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

Hi I am currently studying at WGU University and I have to do a project with Angular. We have free access to all learning sites but this instructor (Procademy) is the best i have ever seen. I highly recomend these tutorials. He is a magician with no comparision to others. Hats off to you.

sanjibkarki
Автор

This is the best and in-depth angular content in the internet

vrb
Автор

I went through udemi courses and have been coding in angular for 5 years, your videos are the best I've seen and I've learned so much more from them! Thank you so much!! I'd love to learn more from you!!

anutaNYC
Автор

You are the best angular content creator on youtube. That's a fact. But angular team are making big changes in version 17 which is coming out today. The updates (control flow, looping, standalone by default, signals, defer block etc.) are making angular practically a new framework. You should make one video only for this changes.

daniel
Автор

imagine if all these type of injections take place in one application, .. it will drive people crazy. Nevertheless, fantastic video!!

XinWongDigital
Автор

Please kindly do a one full fledged project with angular and node express js, when do with this series

Jovicod
Автор

very well clarified. Thank you. I got a few questions. Let's say you are using tokens to uniquely identify which implementation should be injected.
You know, the core concept of dependency injection is to support multiple implementation of an interface. So, If token_1 identifies implementation_1, token_2 identifies implementation_2
then we have to add two injection for the same interface in the component constructor. Its kind of weired. Is there any way to inject one interface with list of implementation and pick which implementation should be triggered based on runtime conditions/values? Since in .net or java they support similar injection that contains all available implementation of an interface.

rpiisenh
Автор

Hi Sir, you mention that @injectable decorator is use to add the flexibility to receive another service and now by adding providedIn property it make the service available at module level how these two different things are possible. can you please explain in detail

shaktisingh
Автор

how many total videos are in the course and when will course get completed ?

saranyasingh
Автор

I still don't understand when we need to use this, in which senarios and what makes it different from the normal Syntax?

sonynguyen