Hi Gabe,
I responded on So too. But I now just saw your plunk.
Replace your catch on line 18 with this:
}).catch(function errorCallback(response) {
setTimeout(function() {throw response});
//using setTimeout moves the actual throwingout of the
// promise chain. It's kind of a hack!
return $q.reject(response) //reReject the error, so the rest
// of the chain knows there is something wrong
});
Again, the promises are just doing what those are supposed to do. This
behaviour is exactly what is to be expected, and specced for promises
<https://tc39.github.io/ecma262/#sec-promise-objects>
Hope this clarifies it a bit more for you,
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.