forty-cdk
llms.txt

Error codes

FORCDK-TABLE-VIRTUALIZATION-002

Thrown by forty-cdk/table-virtualization.

[forty-cdk/table-virtualization] FORCDK-TABLE-VIRTUALIZATION-002: ForTableVirtualized must be used inside a [forTable] element.

Cause

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

Where it comes from

projects/forty-cdk/table-virtualization/src/table-virtualized.ts:38