Answer the question
In order to leave comments, you need to log in
Angular. How to call a method from a script?
Tell me how to do it right:
There is a controller and a view, in the form I edit the product, one of the parameters is edited through the slider (jQuery UI). How to keep track of its values as the slider is moved?
Answer the question
In order to leave comments, you need to log in
We assign an id to the block with the controller and access the methods through it:
angular.element(document.getElementById('productsCtrl')).scope().method();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question