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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -