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

StaticClassSansProvider

Configures the Injector to return an instance of useClass for a token. Base for StaticClassProvider decorator.

      
      interface StaticClassSansProvider {
  useClass: Type<any>
  deps: any[]
}
    

属性

属性说明
useClass: Type<any>

An optional class to instantiate for the token. By default, the provide class is instantiated.

deps: any[]

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