@t2ee/core
v0.1.19
Published
@t2ee core library
Downloads
24
Maintainers
Readme
Introduction
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.
Installation
npm i reflect-metadata @t2ee/core -S
Example
@Component({ scope: new SingletonScope() })
class BootstrapTime {
date: new Date();
}
@Component
class Main {
@AutoWired
programStartedAt: BootstrapTime
}