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 = 0;
}
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to use vertical Slider
</h2>
<h3>Selected Value : {{value}}</h3>
<mat-slider
[(ngModel)]="value"
vertical="true">
</mat-slider>
app.module.ts [import]
import { MatSliderModule } from '@angular/material/slider';
import { FormsModule } from '@angular/forms';
- angular material - How to use Slider
- angular material - Slider step, minimum & maximum value
- 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 get Slide toggle checked status
- angular material - How to change Slide toggle label position
- angular material - How to use Slide toggle 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 - How to show Badge with icon
- angular material - Badge position before & below after