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.

NgElementConfig

A configuration that initializes an NgElementConstructor with the dependencies and strategy it needs to transform a component into a custom element class.

      
      interface NgElementConfig {
  injector: Injector
  strategyFactory?: NgElementStrategyFactory
}
    

Properties

Property Description
injector: Injector

The injector to use for retrieving the component's factory.

strategyFactory?: NgElementStrategyFactory

An optional custom strategy factory to use instead of the default. The strategy controls how the transformation is performed.