Global

Methods

Inject()

Decorator function which registers the entity names to be injected

Source:
Example
@Injectable({name: 'foo'})
class Foo {
    @Inject({name: 'bar'})
    counter

    

Injectable()

A decorator which registers the class it is attached to. The argument is described for DI.constructor

Source:
Example
@Injectable({name: 'foo'})
class Foo { ... }