ConstructorSansProvider

Configures the Injector to return an instance of a token.

查看"说明"...

      
      interface ConstructorSansProvider {
  deps?: any[]
}
    

说明

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

属性

属性说明
deps?: any[]

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 {}
      
      @Injectable(SomeModule, {deps: []})
class MyService {}