填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ComponentFactoryResolver

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>
}
    

参见

静态属性

属性说明
static NULL: ComponentFactoryResolver

方法

Retrieves the factory object that creates a component of the given type.

abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>
      
      abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>
    
参数
component Type

The component type.

返回值

ComponentFactory<T>