app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
value:number = 1;
}
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to set Slider step,
minimum and maximum value
</h2>
<h3>Selected Value : {{value}}</h3>
<mat-slider
[(ngModel)]="value"
min="1"
max="10"
step="0.5">
</mat-slider>
app.module.ts [import]
import { MatSliderModule } from '@angular/material/slider';
import { FormsModule } from '@angular/forms';
- angular material - How to change Divider width
- angular material - How to change Divider thickness
- angular material - How to use indeterminate Progress spinner
- angular - How to use setTimeout()
- angular material - How to change Progress spinner color
- angular material - How to center Progress spinner
- angular material - How to align Tabs
- angular material - How to disable Tabs content animation
- angular material - How to generate Tabs programmatically
- angular material - How to create & add Tab programmatically
- angular material - How to use Slider
- 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 use Selection List