$q.when() Is The Missing $q.resolve() Method In AngularJS

added by Bob Senoff
12/4/2014 1:53:31 PM

315 Views

In AngularJS, the $q services has a top-level method, $q.reject(), which will create a promise that is immediately rejected with the given value. Ever since I saw this method, I have always wondered where the "resolve" equivalent was?


0 comments