linkComponentFactory
npm Package | @angular/core |
---|---|
Module | import { ComponentFactory } from '@angular/core'; |
Source | core/src/linker/component_factory.ts |
linkOverview
class ComponentFactory<C> {
get selector: string
get componentType: Type<any>
get ngContentSelectors: string[]
get inputs: {...}
get outputs: {...}
create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any, ngModule?: NgModuleRef<any>): ComponentRef<C>
}
linkMembers
get componentType: Type<any>
create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any, ngModule?: NgModuleRef<any>): ComponentRef<C>
Creates a new component.