forty-cdk
llms.txt

Error codes

FORCDK-TOOLTIP-002

Thrown by forty-cdk/tooltip.

[forty-cdk/tooltip] FORCDK-TOOLTIP-002: [forTooltipTrigger] could not resolve its [forTooltip] root.

Cause

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

Where it comes from

projects/forty-cdk/tooltip/src/tooltip-context.ts:110

Read the tooltip documentation