forty-cdk
llms.txt

Error codes

FORCDK-SELECT-002

Thrown by forty-cdk/select.

[forty-cdk/select] FORCDK-SELECT-002: [forSelectTrigger] could not resolve its [forSelect] root.

Cause

No FOR_SELECT_CONTEXT provider is visible and no explicit root was passed. 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 [forSelectTrigger] inside the [forSelect] element, or pass the root explicitly: [forSelectTrigger]="root" with #root="forSelect".

Where it comes from

projects/forty-cdk/select/src/select-context.ts:477

Read the select documentation