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

NgElementConfig

一种配置,它使用将组件转换为自定义元素类所需的依赖项和策略来初始化 NgElementConstructor。

A configuration that initializes an NgElementConstructor with the dependencies and strategy it needs to transform a component into a custom element class.

      
      interface NgElementConfig {
  injector: Injector
  strategyFactory?: NgElementStrategyFactory
}
    

属性

属性说明
injector: Injector

本注入器用于检索组件工厂。

The injector to use for retrieving the component's factory.

strategyFactory?: NgElementStrategyFactory

要使用的可选自定义策略工厂,而不是默认工厂。该策略控制转换的执行方式。

An optional custom strategy factory to use instead of the default. The strategy controls how the transformation is performed.