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

NgElementConstructor

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>
      
      new (injector?: Injector): NgElement & WithProperties<P>
    
参数
injector Injector

可选. 默认值是 undefined.

If provided, overrides the configured injector.

返回值

NgElement & WithProperties<P>