app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: [`
mat-slider{
width: 400px;
}
`]
})
export class AppComponent {
value:number = 0;
}
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to show thumb label in Slider
</h2>
<h3>Selected Value : {{value}}</h3>
<mat-slider
[(ngModel)]="value"
thumbLabel="true">
</mat-slider>
app.module.ts [import]
import { MatSliderModule } from '@angular/material/slider';
import { FormsModule } from '@angular/forms';
- angular material - Tick interval with step in Slider
- angular material - How to invert Slider
- angular material - Slider custom formatted thumb label
- angular material - How to use Slider change event
- angular material - How to change Badge size
- angular material - How to use custom Badge size
- angular material - How to show custom color in Badge
- 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
- angular material - Determine an Expansion Panel is opened or closed
- angular material - Determine an Expansion Panel is disabled or enabled
- angular material - How to toggle Expansion Panel expanded state
- angular material - List items separator
- angular material - How to generate List items from array