@alexcoroza4518

I have this personal project made with NodeJS + Typescript. It is now getting bigger and is now having problems managing dependencies. I haven't thought of this problem before because I am originally an Angular dev and haven't had any problems with DI as it is automatically managed by Angular. I did a little research and found TypeDI and Inversify as the best recommendations from the community. I then read a comment in Reddit stating that there's a relatively new one which is Tsyringe and he said its his favorite(also maintained by Microsoft) so I watched it here in Youtube. 
After watching this vid,  I was like "Danm is looks like Angular, its so easy". I think I don't need to look on those 2 other options(TypeDI and Inversify) as this one is already enough for my requirements and I am comfortable with the syntax  it is using. Nice explanation also, thanks.

@reggenius

Honestly, this video took the core of dependency injection using tsyringe and decoupled it in approximately 7 minutes.
Nice one Kris Foster, it's hard to find conciseness merged with in-depth these days.

@Apparentt

I think the only thing that’s missing here is where you would be using interfaces rather than concrete implementations, which is where you’d likely start using a ServiceLocator; having said that I’m quite unfamiliar with this library and would be interested to see how they’ve went about usage in more complex applications

@gabrielangel09

Fantastic short course, exactly what I was looking for! Thank you so much!

@greatifeanyichukwuadams1297

This was very helpful, short and straight to the point.

@tsegreto

Cool video, auto injection shouldn't be used in production environments though. Would love to see you do a follow up video on instance vs singleton and the container file

@yamelamadorfernandez7416

Excellent simple debunk of DI even for a beginner like me, awesome!

@pranjalwalia3810

This is really good ...I noticed that you use class based implementations in express....could you do a video on how you structure an express app in class based implementations and testing it ... obviously with typescript...cheers 🔥

@someChicoRy

довольно интересно. Осталось научиться применять эти знания на практике)

@xseman

Is tsyringe web compatible? I can imagine great usecase for React

@joshuamcdonald2533

you say we are automatically injecting the dependencies, but not what that really means; like in the constructor, its specifying a type, is that just automatically picking that type as the dependency to inject too?

@thehard-coder9398

@Kris - Thank you for creating such a great content. I;m facing issue when Im testing my dependency services with Jest unit test framework. Would you mind to share if there is any sample code or tutorial?

@Luke_uppx

Can u explain how to use this DI in React Component?

@JanacMeena

Great video. Can you do another one in TSyringe for mocks + Jest + SuperTest?

@davethorn9423

don't get it you have a direct dependency in BookService for example,  it's not like your're saying the injected dependency has to conform to an interface, its a class. How do  I swap some other service in . What am I missing , this is obviously useful ?

@ritesisright

What if BookRepository have a dynamic property? E.g. library: 'library1'|'library2'.  Can I control it from BookController?

@adventurer2395

Great video, and thank you for choosing a package maintained by Microsoft! How about just having an index file for the controller where, with a function, you just manually export an instance of the controller with all its dependencies? That is, just creating your own container.

@Oblisk-i8h

Man, you are a god. That's the first time that i understand di

@counterpunK

This was well done, and what it covers is good, but I feel like you missed explaining one of the main usages of DI and these containers, which is using mocks and setting those in the DI framework. It also doesn't explain how to handle the situation where a dependency that we want to autoInject requires parameters in the constructor. Both are pretty common imo.

@devcanoeofficial2021

thanks alot, this was exactly what i needed