XHR Interceptor in an AngularJS web app

AngularJS allows to intercept the response coming from the server, before that the control of the execution is returned to the code that initiated the request. We've already talked about this feature in a previous post; however since that article the API changed a little, making that post obsolete. »

Show route only after all promises are resolved

When a new route is requested in an AngularJS application, it is often necessary to retrieve data from the server to fill the template. If the server request takes too long to complete, it is therefore possible that an incomplete view is presented to the user. This post will show you how to delay the appearance of the new view until all the pending XHR requests have completed. »