我尝试在菜单中只设置空消息(中心,红色)的样式。 但是因为我使用的是ng-template,所以我不能添加类。你知道该如何定义消息的样式吗? my code on stackblitz.com import { Component } from "@angular/core";
import { of } from "rxjs";
/**
* @title Basic menu
*/
@Component({
selector: "menu-overview-example",
template: `
<button
在角度表中添加角度材料菜单时,我遇到了性能问题。具有数千行的角材表创建了数千个mat菜单组件。由于这个页面加载时间太长。
这是我的示例代码。
<table>
<tr *ngFor="let el of [1,2,3,4,5]">
<td>Text line of menu {{el}}</td>
<td style="width: 5%">
<button mat-icon-button [matMenuTriggerFor]=&