填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ConstructorSansProvider

Configures the Injector to return an instance of a token.

      
      interface ConstructorSansProvider {
  deps?: any[]
}
    

参见

属性

属性说明
deps?: any[]

A list of tokens to be resolved by the injector.

使用说明

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