You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently aria menu doesn't seem to allow passing context data to the template from the trigger e.g. same trigger data as cdkMenuTriggerData
Not sure if this feature is in scope, or can be done otherwise better
Use Case
The idea is to share the same menu within a loop, however passing the item in context e.g.
@for (item of collection; track item.id) {
<buttonngMenuTrigger#origin#trigger="ngMenuTrigger" [menu]="formatMenu()" [menuData]="item">Open Menu</button>
}
<divngMenuclass="menu" #formatMenu="ngMenu"><ng-templatengMenuContentlet-item="item"><divngMenuItemvalue="Mark as read" (click)="markAsRead(item)"><spanclass="icon material-symbols-outlined" translate="no" aria-hidden="true">mark_email_read</span><spanclass="label">Mark as read</span></div></ng-template></div>
Activity
crisbeto commentedon May 26, 2026
Closing based on the discussion in #33303.
angular-automatic-lock-bot commentedon Jun 26, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.