Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 1.24 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.24 KB

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
}