how to close mat menu?

3k views Asked by At

enter image description here

Hello, I have several matMenu for example #status="matMenu", #something = "matMenu", i want to close active matMenu on child component's Approve button click. child component is in matMenu. but every time when I use
`

  @ViewChild(MatMenuTrigger, { static: false }) matMenuTrigger: MatMenuTrigger;

  this.matMenuTrigger.closeMenu();`

it closes only first matMenu. can anyone help me?

0

There are 0 answers