ConstructorSansProvider

Configures the Injector to return an instance of a token.

interface ConstructorSansProvider { deps?: any[] }

说明

For more details, see the "Dependency Injection Guide".

属性

属性名类型说明
deps

A list of tokens which need to be resolved by the injector. The list of values is then used as arguments to the useClass constructor.

使用说明

Example

@Injectable(SomeModule, {deps: []}) class MyService {}