IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 508 forks source link

Prettify not working in angular 4 #563

Closed crazyrich closed 6 years ago

crazyrich commented 6 years ago

<ion-range-slider type="double" [min]="minRange.format('x')" [max]="maxRange.format('x')" step = "1800000" from_shadow="false" to_shadow="false" keyboard="true" hide_min_max="false" hide_from_to="false" prettify_enabled = "true" prettify=" function (num) { return moment(num, 'x').format('H:mm') }" decorate_both="false" (onUpdate)="update(advancedSlider, $event)" (onChange)="update(advancedSlider, $event)" (onFinish)="finish(advancedSlider, $event)">

Prettify is not converting the value as desired. I have followed this link : http://jsfiddle.net/tvn2ckj2/ to implement same functionality in angular 4.

crazyrich commented 6 years ago

Got the answer from : https://github.com/PhilippStein/ng2-ion-range-slider/issues/29 👍