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

NgElementConstructor

基于 Angular 组件的类构造函数的原型,该原型可用于自定义元素注册。由 createCustomElement() 函数 实现并返回。

Prototype for a class constructor based on an Angular component that can be used for custom element registration. Implemented and returned by the createCustomElement() function.

      
      interface NgElementConstructor<P> {
  observedAttributes: string[]
  new (injector?: Injector): NgElement & WithProperties<P>
}
    

参见

属性

属性说明
observedAttributes: string[]只读

被监视的自定义元素的属性名称的数组,该属性名称是通过转换源组件中的输入属性名称而得出的。

An array of observed attribute names for the custom element, derived by transforming input property names from the source component.

方法

初始化构造函数实例。

Initializes a constructor instance.

      
      new (injector?: Injector): NgElement & WithProperties<P>
    
参数
injector Injector

如果提供,将覆盖已配置的注入器。

If provided, overrides the configured injector.

可选. 默认值是 `undefined`.
返回值

NgElement & WithProperties<P>