This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

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

Properties

Property Description
observedAttributes: string[] Read-only.

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

Methods

Initializes a constructor instance.

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

Parameters

injector

The source component's injector.

Returns

NgElement & WithProperties<P>