ComponentFactory
class
npm Package | @angular/core |
---|---|
Module | import { ComponentFactory } from '@angular/core'; |
Source | core/src/linker/component_factory.ts |
Overview
class ComponentFactory<C> { get selector: string get componentType: Type<any> get ngContentSelectors: string[] get inputs: {propName: string, templateName: string}[] get outputs: {propName: string, templateName: string}[] create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string|any, ngModule?: NgModuleRef<any>): ComponentRef<C> }
Members
get selector: string
get componentType: Type<any>
get ngContentSelectors: string[]
selector for all
get inputs: {propName: string, templateName: string}[]
the inputs of the component.
get outputs: {propName: string, templateName: string}[]
the outputs of the component.
create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string|any, ngModule?: NgModuleRef<any>): ComponentRef<C>
Creates a new component.
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/core/ComponentFactory