Lists with dividers

We can also easily add a divider class for the list items in order to visually separate them into rows. We need to add the <mat-divider> directive in order to achieve that functionality. Take a look at the updated code as follows:

<mat-card class="z-depth" >
<mat-card-title>Material Lists with Divider</mat-card-title>
<mat-card-content>
<mat-list>
<mat-list-item> Home </mat-list-item>
<mat-divider></mat-divider>
<mat-list-item> About </mat-list-item>
<mat-divider></mat-divider>
<mat-list-item> Contact </mat-list-item>
<mat-divider></mat-divider>
</mat-list>
</mat-card-content>
</mat-card>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.44.199