FORCDK-CONTEXT-MENU-001
Thrown by forty-cdk/context-menu.
[forty-cdk/context-menu] FORCDK-CONTEXT-MENU-001: [forContextMenuTrigger] could not resolve its [forContextMenu] root.
Cause
No FOR_CONTEXT_MENU_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 [forContextMenuTrigger] inside the [forContextMenu] element, or pass the root explicitly: [forContextMenuTrigger]="root" with #root="forContextMenu".
Where it comes from
projects/forty-cdk/context-menu/src/context-menu-context.ts:111