Jordan
Member since May 19, 2015
- Profile: /members/12663-jordan.htm
- Comments: 3
Recent Blog Comments By Jordan
-
Normalizing Untrusted Deferred / Promise Values For The $digest Lifecycle In AngularJS
Posted on Jun 2, 2015 at 9:17 AM
@Ben Great follow-up to our discussion. You are always very thorough :)... read more »
-
$q.when() Is The Missing $q.resolve() Method In AngularJS
Posted on May 20, 2015 at 12:24 PM
@Ben, Yes - exactly what I was thinking! A good use case for this is if, for instance, you really want to use an external promise library - you want to avoid the "Forgotten Promise" anti-pattern, but the library gives you a way to declare a timeout so you can ensure your call is not forg... read more »
-
$q.when() Is The Missing $q.resolve() Method In AngularJS
Posted on May 19, 2015 at 8:23 AM
I love the documentation for $q.when: "Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted." ...spe... read more »