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 change Slider width
</h2>
<h3>Selected Value : {{value}}</h3>
<mat-slider [(ngModel)]="value">
</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 use vertical Slider
- angular material - Tick interval auto in Slider
- angular - Display value using interpolation
- angular - Property binding example
- angular - How to use for loop
- angular - How to bind style
- angular - Text input on change listener
- angular - Generate random whole number
- angular bootstrap - Danger warning success alert
- angular bootstrap - Rating hover event
- angular bootstrap - Progressbar maximum value
- angular bootstrap - How to use Popover
- angular bootstrap - How to delay Popover open close