当用户单击它时如何在新选项卡中打开垫子菜单项,我尝试了下面提到的所有可能方法,能够在新选项卡中打开,但当前选项卡完全空白,直到新选项卡获取数据。
<mat-menu #apps="matMenu" yPosition="below" xPosition="before" [overlapTrigger]="false">
<div mat-menu-item routerLink="/requests" class="appsItem mat-body-1 app-high-em">
<span>{{'Request Extracts' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">vertical_align_bottom</mat-icon>
</div>
<a mat-menu-item routerLink="/users" class="appsItem mat-body-1 app-high-em" appNewWindow>
<span>{{'Users' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">person_add</mat-icon>
</a>
<a mat-menu-item routerLink="/metadata/models" [target]="_blank" class="appsItem mat-body-1 app-high-em">
<span>{{'Meta Data' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">link</mat-icon>
</a>
<div mat-menu-item routerLink="/requests" class="appsItem mat-body-1 app-high-em">
<span>{{'Patient Cohorts' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">people</mat-icon>
</div>
<div mat-menu-item routerLink="/requests" class="appsItem mat-body-1 app-high-em">
<span>{{'Markets' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">public</mat-icon>
</div>
<a mat-menu-item routerLink="/queue" target="_blank" class=" mat-body-1 app-high-em">
<span>{{'Job Monitor' | translate}} </span>
<mat-icon class="float-right appsItemIcon ml-2">list_alt</mat-icon>
</a>
</mat-menu>