Help Angular by taking a 1 minute survey!Go to surveyHome

InjectableType

A Type which has an InjectableDef static field.

See more...

interface InjectableType<T> extends Type { ngInjectableDef: never // inherited from core/Type new (...args: any[]): T }
      
      interface InjectableType<T> extends Type {
  ngInjectableDef: never

  // inherited from core/Type
  new (...args: any[]): T
}
    

Description

InjectableDefTypes contain their own Dependency Injection metadata and are usable in an InjectorDef-based `StaticInjector.

Properties

Property Description
ngInjectableDef: never

Opaque type whose structure is highly version dependent. Do not rely on any properties.