Does anyone know why this does not work?  $http     .get('accept.php', {         source: link,         category_id: category     })     .success(function (data, status) {         $scope.info_show = data     });   and this does work:  $http...
I'm having trouble moving my Angular 1 JavaScript service to a Angular 2 TypeScript service using http to make a CORS request (this is using Ionic version 2). In Angular 1, I do something like this.  angular.module('app.services',[]) .fac...
I have defined a custom http service in angular that looks like this:  angular.module('myApp')   .factory('myhttpserv', function ($http) {    var url = "http://my.ip.address/"    var http = {       async: function (webService)...
I have a controller that performs a http request. This request can take anywhere between 2 seconds to 4 minutes to return some data . I have added a button, that users should click to cancel the request if searches take too long to complete.  Control...
In AngularJS for sending a request I use the builtin $http service.   What shall I use for sending a request to a server in Angular? I can't find any doc that covers the subject....
I'm sending a custom header from server in a response. In $http response interceptor I want to get this header, but the only header I could get is Content-type header. How can I resolve my problem?  Piece of my $http interceptor:  response: funct...
How can I handle an HTTP error, e.g. 500, when using the AngularJS "http get then" construct (promises)?  $http.get(url).then(     function(response) {         console.log('get',response)     } )   Problem is, for any non 200 HTTP res...
I load some binary data using   $http.post(url, data, { responseType: "arraybuffer" }).success(             function (data) { /*  */ });   In case of an error, the server responds with an error JSON object like  { "message" : "som...
I'm working on an angularJS app and this is my first website using this framework. In my app i've a need to make a $http call inside a for loop. With in the loop before the next iteration I want to wait for the response from my previous call....
I have a angular application with many $http request and i want redirect the users on the login page if the server session expires (get 401). Does anyone know a solution witch works for all $http without adding .error() on every $http?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.