forty-cdk
llms.txt

Error codes

FORCDK-LISTBOX-003

Thrown by forty-cdk/listbox.

[forty-cdk/listbox] FORCDK-LISTBOX-003: ForListboxOptionIndicator must be used inside a [forListboxOption] element.

Cause

No FOR_LISTBOX_OPTION provider is visible from ForListboxOptionIndicator. 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 ForListboxOptionIndicator inside a [forListboxOption] element, declaring any ng-template it lives in there too.

Where it comes from

projects/forty-cdk/listbox/src/listbox-option-indicator.ts:32

Read the listbox documentation