I have a product built in angularJS , and I have created almost 300
controllers. All the contollers have a XHR call (not $http call, it is
basic javascript XMLHttpRequest ) for checking session data (by calling a
service at the beginning of the controller). At the starting time I made a
mistake by creating it in synchronous way (synchronous call is defined in
the service), now it is deprecated in mozilla firefox and will deprecate in
chrome soon. Is there have a alternative way to make synchronous XHR calls
without changing all the controllers into a $watch ?
var request = new XMLHttpRequest();
request.open('POST', 'path/to/my/APIservice', false);
Thanks for any help.
--
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.