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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -