Skip to main content
cngx-src documentation

CNGX_FILTER_BUILDER_TEMPLATE_REGISTRY_FACTORY

Tokenv0.1.0

InjectionToken<CngxFilterBuilderTemplateRegistryFactory>

Description#

Factory that resolves the slot-template registry for <cngx-filter-builder>. For each of the nine slots it runs the three-stage cascade and returns the resolved TemplateRef set the recursive body renders:

  • the consumer's contentChild slot template
  • else CNGX_FILTER_BUILDER_CONFIG.templates.<key>
  • else the built-in default

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

providers: [
  { provide: CNGX_FILTER_BUILDER_TEMPLATE_REGISTRY_FACTORY, useValue: myFactory },
]

The <cngx-filter-builder> component is the canonical caller, through injectFilterBuilderTemplateRegistry(queries).

Type#

InjectionToken<CngxFilterBuilderTemplateRegistryFactory>

Provided in#

'root'