Skip to main content
cngx-src documentation

CNGX_COMMAND_SOURCE

Tokenv0.1.0

InjectionToken<readonly CngxCommandSource[]>

Description#

Multi-token every provideCommands call contributes to. App parts register command sets against it without a central list, mirroring provideCngxMenu. The generic is the collected array (as with Angular's HTTP_INTERCEPTORS), so inject(CNGX_COMMAND_SOURCE) returns every contributed source.

Type#

InjectionToken<readonly CngxCommandSource[]>