This projects aims to be foundation component for the rest of @t2ee projects. It provides dependency injection and auto configuration functionalities.
For detailed introduction and examples, please visit core.t2ee.org.
npm i reflect-metadata @t2ee/core -S
@Component({ scope: new SingletonScope() })
class BootstrapTime {
date: new Date();
}
@Component
class Main {
@AutoWired
programStartedAt: BootstrapTime
}