File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ <a name =" 1.7.16 " ></a >
2+ # [ 1.7.16] ( ) (2017-11-30)
3+
4+ ### Added
5+ * ** Component** decorator - functions the same as Injectable.
6+
17<a name =" 1.7.15 " ></a >
28# [ 1.7.15] ( ) (2017-10-18)
39
Original file line number Diff line number Diff line change 11{
22 "name" : " container-ioc" ,
3- "version" : " 1.7.15 " ,
3+ "version" : " 1.7.17 " ,
44 "description" : " Dependency Injection and Inversion of Control (IoC) container" ,
55 "author" : " Alexander Kozlov" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export function Injectable(injections?: ProviderToken[]) {
1717 } ;
1818}
1919
20+ export const Component = Injectable ;
21+
2022export function Inject ( token : any ) {
2123 return ( target : object , propertyKey : string | symbol , parameterIndex : number ) => {
2224 const injections : IInjectionMd [ ] = MetadataAnnotator . getMetadata ( INJECTIONS_MD_KEY , target ) || [ ] ;
Original file line number Diff line number Diff line change 11export { Container } from './container' ;
22export { IContainer , TContainer } from './container.interface' ;
33export { Inject , Injectable } from './decorators' ;
4+ export { Inject , Injectable , Component } from './decorators' ;
45export { InjectionToken } from './injection-token' ;
56export { IMetadataAnnotator } from './metadata/metadata-annotator.interface' ;
67export { AnnotatorProvider } from './metadata/index' ;
7- export { LifeTime } from './interfaces' ;
8+ export { LifeTime } from './interfaces' ;
You can’t perform that action at this time.
0 commit comments