angular with foreign (jQuery) promises

When using angular turns out that it’s not as straightforward when it comes to foreign libraries. I needed to use jQuery $.post instead of angulars $http.post method (to reduce the friction between angular and asp.net mvc regarding request token validation) and I came across unexpected (though understandable once you get to the core problem) behavior. Here’s the angular version…

By on (tags: angular, javascript, jQuery, categories: web)