menu/src/menu-anchor/menu-anchor.directive.ts
Assigned to an element, MenuAnchor triggers the associated Menu. MenuAnchor provides triggerFor input property. It
will trigger the template with a matching id.
<span talenraMenuAnchor [triggerFor]="myMenu">My Menu</span>
<ng-template #myMenu>
<talenra-menu><!-- Menu content goes here --></talenra-menu>
</ng-template>import { MenuAnchorDirective } from '@talenra/components/menu';See MenuComponent
FocusableOption
AfterViewInit
| Selector | [talenraMenuAnchor] |
| HostDirectives |
CdkMenuItem
CdkMenuTrigger
Inputs : cdkMenuTriggerFor: triggerFor
|