Posts Tagged ‘promises’

Properly cascading rejected angular promises

Angular.js promises offer a nice design pattern for asynchronous events. The way many developers often use them in angular apps looks like this

In this use-case I am returning the data passed to the callback function in the case of success and returning null in the case of a failure. In both cases the result […]