Skip to main content
cngx-src documentation

CNGX_TEMPLATE_REGISTRY_FACTORY

Tokenv0.1.0

InjectionToken<CngxTemplateRegistryFactory>

Referenced by#

Description#

Factory that resolves the select family's slot-template registry. For each slot it runs the cascade and returns the TemplateRef set the trigger and panel render:

  • the consumer's projected slot template (*cngxSelect...)
  • else CNGX_SELECT_CONFIG.templates.<slot>
  • else the built-in default

Default: createTemplateRegistry. Swap the whole resolution strategy by providing your own factory at root or component scope.

Type#

InjectionToken<CngxTemplateRegistryFactory>

Provided in#

'root'