9
votes
1answer
3k views

Getting AngularJS Error: “[$rootScope:inprog] $digest already in progress” without a manual $apply

Other posts on this error always include someone trying to $apply without using a safe apply, but that's not the case in my example. My function IS successfully returning the data I requested from the ...
2
votes
1answer
126 views

How can we test non-scope angular controller methods?

We have few methods in Angular Controller, which are not on the scope variable. Is anyone know, how can we execute or call those methods inside jasmine test? Here is main code. var testController ...
0
votes
1answer
63 views

How to get different controllers to use different configurations of $httpProvider in AngularJS?

I have a AngularJS project using the directory layout from angular-seed. https://github.com/angular/angular-seed app.js contains the configuration of my http provider. All my controllers have to use ...
0
votes
1answer
34 views

How to $http.post with payload in data?

How do I post data from a form in AngularJS? <form data-ng-submit="doSomething()"> <input type="text" data-ng-input="do_obj.text"/> <input type="email" ...
0
votes
1answer
196 views

AngularJS controller scope won't sync with promise

I've picked up a project and I'm trying to return some data from a service to my controller. I've been at this for about 12 hours, and have tried different methods. They all usually result in this ...