app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to use Card
</h2>
<mat-card>
<mat-card-title>Card Title</mat-card-title>
<mat-card-subtitle>Card Subtitle</mat-card-subtitle>
<mat-card-content>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nam tincidunt elit non molestie rutrum.
Donec blandit risus et sem iaculis aliquam.
Cras feugiat pharetra dolor, ac euismod tellus maximus eu.
Etiam dignissim enim vel lacus molestie, in iaculis tellus
ultrices. Integer rhoncus tristique felis ut dignissim.
</mat-card-content>
<mat-card-actions align="end">
<button mat-raised-button>No</button>
<button mat-raised-button>Yes</button>
</mat-card-actions>
<mat-card-footer>Card Footer</mat-card-footer>
</mat-card>
app.module.ts [import]
import {MatCardModule} from '@angular/material/card'
import {MatButtonModule} from '@angular/material/button'
- angular material - How to change Progress spinner color
- angular material - How to center Progress spinner
- angular material - How to use Tabs
- angular material - How to use custom label in Tabs
- angular material - How to slow Tabs content transition
- angular material - How to get Tabs selected index
- angular material - How to use Tabs selectedTabChange event
- angular material - How to use vertical Slider
- angular material - How to change Slider width
- angular material - Tick interval auto in Slider
- angular material - How to show thumb label in Slider
- angular material - Slider custom formatted thumb label
- angular material - How to use Slider change event
- angular material - How to use custom Badge size
- angular material - How to show custom color in Badge