Posts Tagged ‘javascript’

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 […]


Angular.js custom filters in separate modules

I’ve been spending a lot of time recently with Angular.js, both in my own explorations and in my daily work. I have been searching for the best method of modularizing an Angular application to aid in testing, development and future maintenance. I, like many who will read this, started out in Angular creating applications in […]