{ "id": "api/elements/NgElementConfig", "title": "NgElementConfig", "contents": "\n\n
\n
\n
\n \n API > @angular/elements\n
\n \n
\n \n
\n

NgElementConfiglink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n \n
\n \n \n
\n\ninterface NgElementConfig {\n injector: Injector\n strategyFactory?: NgElementStrategyFactory\n}\n\n\n \n \n\n\n \n \n\n
\n\n \n\n \n \n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n injector: Injector\n \n \n

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

\n\n \n
\n \n strategyFactory?: NgElementStrategyFactory\n \n \n

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

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }