pls anybody suggest $(document).ajaxcomplete function equivalent method
for $http GET calls in angularJS.
$http.get(url, { params: paramArgs })
.success(function (data) {
deferred.resolve(data);
}).error(function (data, status, headers, config) {
if (status === 401) {
window.parent.location.href = sLogOutURL;
}
deferred.reject();
});
I need to handle the error status 401 globally to redirect to Logout Url on
session expire.
Pls suggest on this.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.