Skip to main content
cngx-src documentation

provideCngxMenu

Functioncommon/interactive/menu

projects/common/interactive/menu/provide-cngx-menu.ts

Description#

Unified aggregator for the menu family's configuration. Filters features by _target and forwards to the matching provide*Config function.

Today there is exactly one config surface (CNGX_MENU_CONFIG), so all features dispatch to provideMenuConfig. The discriminator scaffolding is in place so adding a future surface does not break the public API of existing with* features.

Mirrors provideCngxSelect from the select-family A+ closure.

bootstrapApplication(AppComponent, {
  providers: [
    provideCngxMenu(
      withAriaLabels({ submenuOpened: 'Untermenü geöffnet' }),
      withTypeaheadDebounce(500),
    ),
  ],
});

Signature#

provideCngxMenu(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders