Files
container.ts
What you'll learn
- Define and read metadata on a class with reflect-metadata
- Explain what emitDecoratorMetadata records in design:paramtypes, and why an interface appears there as Object
- Build a dependency injection container that resolves constructor parameters recursively and shares one instance per class
Press Run tests to start the app. Its log appears here.Tests
- container.spec.tsrun to see its tests