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)

jQuery deferred

The Deferred object has been in jQuery since version 1.5 but I haven’t had the chance to get to know it until recently – turns out that it’s rather handy to have in your toolset. For a brief introduction, take a look at this link. Cheers…

By on (tags: jQuery, categories: web)