InjectableType
A Type which has an InjectableDef static field.
interface InjectableType<T> extends Type {
ngInjectableDef: never
// 继承自 core/Type
new (...args: any[]): T
}
说明
InjectableDefTypes contain their own Dependency Injection metadata and are usable in an InjectorDef-based `StaticInjector.
属性
| 属性 | 说明 |
|---|---|
ngInjectableDef: never | Opaque type whose structure is highly version dependent. Do not rely on any properties. |