The Slider component provides the user with the ability to input a value by using a Slider bar or using the dragging of a handle. The model property binds to a number type, which holds the input value. The input can be attached to Slider by providing the same model value for both. A basic example of a Slider would be as follows:
<p-slider [(ngModel)]="basicinput" name="basicinput"
styleClass="slider-width">
</p-slider>
The Slider will be displayed with a dragging handle, as shown in the following screenshot:
The output value will be updated every time the handle is dragged across the bar.