Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page 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> }

See also

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>
    
Parameters
injector Injector

If provided, overrides the configured injector.

Optional. Default is undefined.

Returns

NgElement & WithProperties<P>