forty-cdk
llms.txt

Error codes

FORCDK-POPOVER-002

Thrown by forty-cdk/popover.

[forty-cdk/popover] FORCDK-POPOVER-002: [forPopoverTrigger] could not resolve its [forPopover] root.

Cause

No FOR_POPOVER_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 [forPopoverTrigger] inside the [forPopover] element, or pass the root explicitly: [forPopoverTrigger]="root" with #root="forPopover".

Where it comes from

projects/forty-cdk/popover/src/popover-context.ts:204

Read the popover documentation