ComponentFactory
Base class for a factory that can create a component dynamically. Instantiate a factory for a given type of component with resolveComponentFactory()
. Use the resulting ComponentFactory.create()
method to create a component of that type.
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>
}
参见
属性
方法
Creates a new component. | ||||||||||||
参数
返回值 |