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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -