angularjs - How to digest changes in method outside angular and outside scope -
so realized doing changes outside angular-bounds, in async ajax callback, not make angular call $apply on scope. far have solved these issues calling $scope.$apply() after changes have been made, time function not located in same scope. method lies in factory, , called controller.
i have tried sending scope parameter controller factory, in fact work, not pretty expect have many methods this, , sending additional parameter each time seems ugly.
any ideas?
Comments
Post a Comment