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

Dependency injection and auto configuration, core component for the rest @t2ee projects.

License

Notifications You must be signed in to change notification settings

t2ee/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}