R
R
Rrooom2014-08-13 18:21:03
JavaScript
Rrooom, 2014-08-13 18:21:03

How to solve AngularJS error: $apply already in progress?

https://docs.angularjs.org/error/$rootScope/inprog...
I read the text itself, but still did not understand how to solve it.
There is ng-click, inside the function I do the following:

function (name, swither, data) {
        $scope[swither] = 0;
        $scope[data] = [];
        $('[name=' + name + ']').multiSelect('deselect_all');
    };

I reset the values ​​and call the jquery plugin so that it would un-select (and how is it in Russian, by the way?) Multiselect elements.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2014-08-13
@AMar4enko

you first from
get rid of it, and then it will be easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question