{"id":6595,"date":"2015-11-06T17:40:40","date_gmt":"2015-11-06T09:40:40","guid":{"rendered":"http:\/\/onthe8spot.com\/?p=6595"},"modified":"2015-11-06T17:40:40","modified_gmt":"2015-11-06T09:40:40","slug":"q-serial-a-cleaner-way-to-execute-promises-serially-in-angularjs-code-ducky","status":"publish","type":"post","link":"http:\/\/onthe8spot.com\/index.php\/2015\/11\/06\/q-serial-a-cleaner-way-to-execute-promises-serially-in-angularjs-code-ducky\/","title":{"rendered":"$q.serial a cleaner way to execute promises serially in AngularJS. &#8211; Code Ducky"},"content":{"rendered":"<p>The GWAPS team used this pattern extensively.<br \/>\nFor recording purposes.<\/p>\n<blockquote><p>$q.serial a cleaner way to execute promises serially in AngularJS.March 11, 2015UncategorizedSteven WexlerHey AngularJS devs! Let\u2019s talk about executing async tasks serially with promises and how $q.serial can help.First, we notice .then allows our success\/fail callbacks to return a promise. $q treats success\/fail callbacks that return promises specially. We\u2019ll look at two examples to see how $q treats success\/fail functions that return promises differently from those that don\u2019t.<\/p><\/blockquote>\n<p>Source: <em><a href=\"http:\/\/www.codeducky.org\/q-serial\/\">$q.serial a cleaner way to execute promises serially in AngularJS. &#8211; Code Ducky<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GWAPS team used this pattern extensively. For recording purposes. $q.serial a cleaner way to execute promises serially in AngularJS.March 11, 2015UncategorizedSteven WexlerHey AngularJS devs! Let\u2019s talk about executing async tasks serially with promises and how $q.serial can help.First, we notice .then allows our success\/fail callbacks to return a promise. $q treats success\/fail callbacks that &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/onthe8spot.com\/index.php\/2015\/11\/06\/q-serial-a-cleaner-way-to-execute-promises-serially-in-angularjs-code-ducky\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;$q.serial a cleaner way to execute promises serially in AngularJS. &#8211; Code Ducky&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[79],"tags":[],"class_list":["post-6595","post","type-post","status-publish","format-standard","hentry","category-reposts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/6595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/comments?post=6595"}],"version-history":[{"count":0,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/6595\/revisions"}],"wp:attachment":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/media?parent=6595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/categories?post=6595"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/tags?post=6595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}