https://i.sstatic.net/jJwqu.jpg
private commands = ['Comand1, Comand2, Comand3'];
<div class="basic-container">
<mat-nav-list>
<mat-list-item (click)="menuTrigger.openMenu()" *ngFor="let i of commands">
<div mat-line>
{{ i }}
</div>
<p mat-line>
{{ i }}
</p>
<button mat-icon-button>
<mat-icon>more_vert</mat-icon>
</button>
</mat-list-item>
<mat-divider></mat-divider>
</mat-nav-list>
</div>
I want items to be displayed vertically in sequence.
Cimmand1
Cimmand2
Cimmand3