ComponentFactoryResolver
From Get docs
< @angular/coreAngular/docs/8/api/core/componentfactoryresolver
ComponentFactoryResolver
class
A simple registry that maps Components
to generated ComponentFactory
classes that can be used to create instances of components. Use to obtain the factory for a given component type, then use the factory's create()
method to create a component of that type.
abstract class ComponentFactoryResolver {
static NULL: ComponentFactoryResolver
abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>
}
See also
Static properties
Property | Description |
---|---|
static NULL: ComponentFactoryResolver
|
Methods
resolveComponentFactory() | |||
---|---|---|---|
Retrieves the factory object that creates a component of the given type. | |||
abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>Parameters
Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/core/ComponentFactoryResolver