Demo: http://jsfiddle.net/5e78mxha/
The demo above works by using the vm.sliderOptions workaround, but using the vm.sliderOptionsBroken does not.
Expected behaviour
Using the stepsArray with MomentJS instances and using the translate option to translate the values to string literals should work.
Actual behaviour
Fails to bind correctly, though you can translate the values to string literals and use these are part of the stepsArray - the problem here is that the bindings are not what you'd what (i.e. the MomentJS instances).
Demo: http://jsfiddle.net/5e78mxha/
The demo above works by using the
vm.sliderOptionsworkaround, but using thevm.sliderOptionsBrokendoes not.Expected behaviour
Using the
stepsArraywith MomentJS instances and using thetranslateoption to translate the values to string literals should work.Actual behaviour
Fails to bind correctly, though you can translate the values to string literals and use these are part of the
stepsArray- the problem here is that the bindings are not what you'd what (i.e. the MomentJS instances).