Understanding AngularJS Promises 2: Promise callbacks or promise.catch()?
AngularJS’s promises library ($q) provides two different patterns for handling success and failure: the callback pattern and the promise chain pattern (promise.then().catch()). In this article, we’ll [...]