ComponentFactory
abstract class ComponentFactory<C> {
abstract selector: string
abstract componentType: Type<any>
abstract ngContentSelectors: string[]
abstract inputs: {...}
abstract outputs: {...}
abstract create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: any, ngModule?: NgModuleRef<any>): ComponentRef<C>
}
属性
属性 | 说明 |
---|---|
abstract selector: string | 只读 The component's HTML selector. |
abstract componentType: Type<any> | 只读 The component's type |
abstract ngContentSelectors: string[] | 只读 Selector for all |
abstract inputs: {
propName: string;
templateName: string;
}[] | 只读 The inputs of the component. |
abstract outputs: {
propName: string;
templateName: string;
}[] | 只读 The outputs of the component. |
方法
Creates a new component. | ||||||||||||
参数
返回值 |