AngularJS : $q -> deferred API order of things (lifecycle) AND who invokes digest?
Promises have three states Pending – this is how promises start. Fulfilled – this is what happens when you resolve a deferred, or when the return value from .then fulfills, and it generally analogous to a standard return value. Rejected – This is what happens when you reject a deferred, when you throw from a … Read more