Back to Browse

TypeScript Dependency Injection using tsyringe

38.0K views
Mar 3, 2021
7:12

Learn how to use dependency injection in a TypeScript application using tsyringe as a dependency injection container. We will be creating a REST API using NodeJS & Express. We will be doing this using classes in TypeScript. Each of these classes will use dependency injection so we can pass their dependencies into their constructors. We will then use tsyringe as a dependency injection container so their dependencies can be automatically injected. Check out the code on Github: https://github.com/kriscfoster/typescript-dependency-injection Don't forget to Subscribe here: https://www.youtube.com/channel/UCWkzkhQ3syxBjjAYwqCbzYg?sub_confirmation=1

Download

1 formats

Video Formats

360pmp410.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

TypeScript Dependency Injection using tsyringe | NatokHD