ng2-nouislider
ng2-nouislider copied to clipboard
slider doesn't update 'slider buttons' count when range values count was dynamically changed
I have some range f.e. [30, 100]. I need to change this range to [50, 200, 500] by click on some button in another place.
What I see now: Count of sliders (buttons on a slider) doesn't change when it becomes [50, 200, 500].
Here is my code:
<nouislider [min]="min" [max]="max" [step]="step" [tooltips]="tooltips" [(ngModel)]="range"></nouislider>
import { Component, OnInit, Input } from "@angular/core"; @Component({ selector: "app-range-slider", templateUrl: "views/range-slider.component.html", styleUrls: ["styles/range-slider.component.scss"] }) export class RangeSliderComponent implements OnInit { @Input() connect: boolean; @Input() min: number; @Input() max: number; @Input() step: number; @Input() range: number[]; @Input() tooltips: boolean; }
@igormap42 have you found a solution? I have the same problem(
@igormap42 have you found a solution? I have the same problem(
Unfortunately no, it's still an issue.