Rob P
Member since May 29, 2015
- Profile: /members/12675-rob-p.htm
- Comments: 1
Recent Blog Comments By Rob P
-
Normalizing Untrusted Deferred / Promise Values For The $digest Lifecycle In AngularJS
Posted on May 29, 2015 at 2:31 AM
Another use for $q.when() I stumbled across recently is when you need an optional first link in a Promise chain. Something like: function findAll(params, options) { var deferred = $q.defer(); $q.when() .then(function() { if (params && params.postId) { ... read more »