Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

StaticClassSansProvider

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

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

Child interfaces

Properties

Property Description
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.