tb / ng2-nouislider

Angular2 noUiSlider directive
http://tb.github.io/ng2-nouislider/
MIT License
184 stars 114 forks source link

slider doesn't update 'slider buttons' count when range values count was dynamically changed #166

Open igormap42 opened 6 years ago

igormap42 commented 6 years ago

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; }

AndreyFedotov commented 5 years ago

@igormap42 have you found a solution? I have the same problem(

igormap42 commented 5 years ago

@igormap42 have you found a solution? I have the same problem(

Unfortunately no, it's still an issue.