you make angular concepts simple and easy to understand. thanks since NG2
@deborah_kurata6 ай бұрын
That is wonderful to hear. Thank you so much! 😊
@d13g0m0r3n06 ай бұрын
Another awesome explanation, Deborah you're wonderful
@deborah_kurata6 ай бұрын
Thank you so much! 😊
@vd28286 ай бұрын
The content is so useful. Thank you very much.
@deborah_kurata6 ай бұрын
Great to hear that. Thank you! 😊
@orhancanoguz44236 ай бұрын
Thanks , Professor...
@deborah_kurata6 ай бұрын
You are welcome! Hope it was useful!
@pranaykhilari73456 ай бұрын
Thanks Deborah. What is the advantage of using inject over constructor base dependancy injection
@deborah_kurata6 ай бұрын
One of the key reasons is that it is more explicit. The code is saying to inject a dependency and assign the reference to a variable. When using a constructor, you have to know the "secret" about what a constructor parameter means. And if you forget the public/private keyword, the magic doesn't happen. And, as shown near the end of the video, you can use inject in places you can't use constructor-based dependency injection.
@theFijian2 ай бұрын
I've used inject in a factory service to inject a service based on a query string param. Much easier then doing it in the constructor
@osamaabozahra6 ай бұрын
Thanks Deborah, you're my favorite teacher great video, waiting for the new one, preferably an advanced one 😀
@deborah_kurata6 ай бұрын
That is so kind of you to say! Thank you! When you say "advanced", do you have something specific in mind?
@osamaabozahra6 ай бұрын
@@deborah_kurata There are multiple ones actually: - runInInjectionContext use cases - injector.create function Basically the dependcy injection advanced use cases in a practical way Also another video in my mind is one like the "RxJS in Angular: Terms, Tips, and Patterns" but for signals 😃 Thanks a lot for your videos again
@deborah_kurata6 ай бұрын
@@osamaabozahra I'll definitely add those topics to my list. I do have a video on signals here: kzbin.info/www/bejne/paK8gnpthrKXsNk But I assume you're looking for something a bit more advanced? You could check out my signals play list: kzbin.info/aero/PLErOmyzRKOCrzJ9zUEGgC1zVzVGt3hMmV
@osamaabozahra6 ай бұрын
@@deborah_kurata Thanks Deborah, I have already watched most of your signals playlist, and will recap them. But I meant a full video discussing some of the emerging patterns related to signals and what are the best practices using them.
@deborah_kurata6 ай бұрын
I just posted a video about this today: kzbin.info/www/bejne/qHm0kmeJpcqel6M
@felipemendietaz49476 ай бұрын
Woow Deborah, I love your explanations, thanks a lot, I came here for your free code camp tutorial about signals. Greetings from Ecuador.
@deborah_kurata6 ай бұрын
Greetings! So great to hear the videos are helpful. Thanks! 😊
@Mark330902 ай бұрын
very cool, I've only put them in the constructor's () area, didn't know we had options... Is there a preferred place to inject services though, or are they all the same??
@omararizmendi75746 ай бұрын
Thank you very much for this explanation. A really easy way to understand this topic, thanks.
@deborah_kurata6 ай бұрын
Thank you!
@ruekkart6 ай бұрын
Nice explanation. I came to Angular from a backend background and I loved it, especially because of its DI system. However, I'm now worried about the inject() function because, in the backend world, it is generally considered bad practice to use property injection. It is encouraged to use constructor injection most of the time, mainly to maintain better control over the dependencies of a given class/component/module. What do you think about this?
@deborah_kurata6 ай бұрын
Thanks! I looked at that a bit when I was researching for this post. I came upon this, which provides some background on inject() in a JavaScript world: www.reddit.com/r/Angular2/comments/18ry9m4/the_inject_function_in_angular_is_not_just_a_toy/
@OlehBiblyi4 ай бұрын
Great explanation
@deborah_kurata4 ай бұрын
Thank you!
@CodingAbroad6 ай бұрын
So is using constructor now undesirable? Can we avoid using constructor completely now?
@deborah_kurata6 ай бұрын
Not necessarily undesirable. Yes, you can avoid using the constructor if you want to. But you can use either. Many teams are standardizing on the inject function approach. Others prefer to see the injected services all in one place in the constructor.
@poojajagtap73496 ай бұрын
Valuable content thanks
@deborah_kurata6 ай бұрын
Thank you!
@cooleboy506 ай бұрын
Great video Deborah. What is the primary reason that we can only inject within the injection context?
@deborah_kurata6 ай бұрын
Thanks! As per the docs: "The dependency injection (DI) system relies internally on a runtime context where the current injector is available. This means that injectors can only work when code is executed in such a context." angular.dev/guide/di/dependency-injection-context
@poojajagtap73496 ай бұрын
Thanks Best video
@deborah_kurata6 ай бұрын
Thanks so much!
@underTaker-d2q6 ай бұрын
Something new 🎉 I haven't heard
@deborah_kurata6 ай бұрын
Hope it was useful! 😊
@ritiksahu53105 ай бұрын
thanks
@deborah_kurata5 ай бұрын
😊
@RaghavendraKarteek6 ай бұрын
HI Madam, please post Angular 17 concepts tutorials as well.
@deborah_kurata6 ай бұрын
Is there a specific topic you're interested in?
@RaghavendraKarteek6 ай бұрын
@@deborah_kurata thanks for your reply. Could you please explain defer concepts and SSR concepts
@deborah_kurata6 ай бұрын
Defer is definitely on my list. I have not tried out SSR, so that one is further down on my list as it will require significant research. 😊