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

The source component's injector.

返回值

NgElement & WithProperties<P>