tsdi v0.25.0
tsdi
Easy dependency injection for TypeScript.
Features
- Type based dependency injection
- Type auto registration
- Lifecycle methods
- Constructor parameters injection
- Singletons and Instances
- External components (components not managed by tsdi)
- Scopes
Installation
Install as npm package:
$ yarn add tsdior
npm install tsdi --saveYou need to enable decorator metadata in your tsconfig.json, which is done by adding the following line:
"emitDecoratorMetadata": trueOtherwise TSDI will not be able to infer the types of some factories and components.
Documentation
Released under MIT license - (C) 2018 Markus Wolf
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago