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

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -