Skip to main content

angular material - How to use List

app.component.html

<h2 style="padding-top:25px; padding-bottom:16px;">
  Angular Material - How to use List
</h2>


<mat-list>
  <mat-list-item>Red</mat-list-item>
  <mat-list-item>Green</mat-list-item>
  <mat-list-item>Blue</mat-list-item>
  <mat-list-item>Yellow</mat-list-item>
  <mat-list-item>Black</mat-list-item>
  <mat-list-item>Pink</mat-list-item>
</mat-list>
app.module.ts [import]

import { MatListModule } from '@angular/material/list'
More Angular tutorials