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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -