forty-cdk
llms.txt

Error codes

FORCDK-LISTBOX-002

Thrown by forty-cdk/listbox.

[forty-cdk/listbox] FORCDK-LISTBOX-002: ForListboxGroupLabel must be used inside a [forListboxGroup] element.

Cause

No ForListboxGroup provider is visible from ForListboxGroupLabel. Angular resolves a directive's dependencies at the template's declaration site rather than where it is stamped, so a piece declared in an ng-template outside the root resolves nothing even when it renders inside it.

Fix

Move ForListboxGroupLabel inside a [forListboxGroup] element, declaring any ng-template it lives in there too.

Where it comes from

projects/forty-cdk/listbox/src/listbox-group-label.ts:27

Read the listbox documentation