InjectableType
具有 InjectableDef
静态字段的 Type
A Type
which has a ɵprov: ɵɵInjectableDeclaration
static field.
interface InjectableType<T> extends Type {
// 继承自 core/Type
constructor(...args: any[]): T
}
说明
InjectableDefType
包含其自己的依赖注入元数据,并且可在基于 InjectorDef
的 StaticInjector
中使用。
InjectableType
s contain their own Dependency Injection metadata and are usable in an InjectorDef
-based `StaticInjector.