All academies

Simulator

IoC Container

Register providers and watch the container create the dependency graph — the same idea Nest uses under the hood.

1Application Start
2Container Creation
3Provider Registration
4Dependency Resolution
5Object Creation
6Injection
7Application Ready

Registered providers

tokens
  • Database
    deps: (none)
  • UserRepository
    deps: Database
  • UserService
    deps: UserRepository
  • UserController
    deps: UserService