angularjs - How to get the Angular value in javascript function? -
here want slidervalue in onchange event of javascript function. using document.queryselector instead of want set in scope of slidervalue.
code: <input id="slider" type ="range" min="{{slidermin}}" onchange="updateslider()" max="{{slidermax}}" step="{{sliderstep}}" value="{{slidervalue}}" />
try this:
onchange="angular.element(this).scope().updateslider(this)"
Comments
Post a Comment