TypeScript Dependency Injection using tsyringe

Опубликовано: 03 Март 2021
на канале: Kris Foster
33,019
726

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/typesc...

Don't forget to Subscribe here:    / @krisfoster1