我正在尝试将页面动态添加到有角度的材质sidenav结构中。我的sidenav代码如下
<mat-toolbar color="primary">
<button mat-icon-button (click)="snav.toggle()"></button>
</mat-toolbar>
<div fxLayout="row">
<mat-drawer-container>
<mat-drawer #snav [mode]="'side'">
<mat-nav-list>
<a mat-list-item>Home</a>
</mat-nav-list>
</mat-drawer>
<mat-drawer-content>
<p>content</p>
</mat-drawer-content>
</mat-drawer-container>
</div>
现在在我的主页上,我正在调用sidenav选择器
<app-sidenav></app-sidenav>
<table mat-table [dataSource]="dataSource" matSort class="mat-elevation-z8">
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef mat-sort-header> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>
</table>
我的问题是如何将主页html添加到sidenav内容区域?