ComponentFactory
class
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?: string | any, ngModule?: NgModuleRef<any>): ComponentRef<C>
} Properties
| Property | Description |
|---|---|
abstract selector: string |
Read-only. The comonent's HTML selector. |
abstract componentType: Type<any> |
Read-only. The component's type |
abstract ngContentSelectors: string[] |
Read-only. Selector for all |
abstract inputs: {
propName: string;
templateName: string;
}[] |
Read-only. The inputs of the component. |
abstract outputs: {
propName: string;
templateName: string;
}[] |
Read-only. The outputs of the component. |
Methods
| create() | ||||||||
|---|---|---|---|---|---|---|---|---|
| Creates a new component. | ||||||||
|
| injector | Type: |
| projectableNodes | Type: Optional. Default is |
| rootSelectorOrNode | Type: Optional. Default is |
| ngModule | Type: Optional. Default is |
Returns
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/ComponentFactory