app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - Badge position before and below after
</h2>
<h3>Badge position before</h3>
<button
mat-raised-button
matBadge="8"
matBadgeColor="primary"
matBadgePosition="before">
Material Badge
</button>
<h3 style="margin-top:40px;">
Badge position below after
</h3>
<button
mat-raised-button
matBadge="8"
matBadgeColor="accent"
matBadgePosition="below after">
Material Badge
</button>
app.module.ts [import]
import { MatBadgeModule } from '@angular/material/badge'
import { MatButtonModule } from '@angular/material/button'
- angular material - How to use Slider
- angular material - Slider step, minimum & maximum value
- angular material - Tick interval with step in Slider
- angular material - How to invert Slider
- angular material - How to use Slider input event
- angular material - How to use Slide toggle
- angular material - How to change Slide toggle checked color
- angular material - How to use Badge with text
- angular material - How to change Badge position
- angular material - How to toggle Badge visibility
- angular material - How to show Badge in a button
- angular material - How to show Badge with icon
- angular material - Open Accordion multiple panels at once
- angular material - How to disable a panel in Accordion
- angular material - How to hide Accordion panels toggle icon