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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -