forty-cdk
llms.txt

Error codes

FORCDK-HOVER-CARD-002

Thrown by forty-cdk/hover-card.

[forty-cdk/hover-card] FORCDK-HOVER-CARD-002: [forHoverCardTrigger] could not resolve its [forHoverCard] root.

Cause

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

Where it comes from

projects/forty-cdk/hover-card/src/hover-card-context.ts:149

Read the hover-card documentation