using $http service of angularjs.

learn more… | top users | synonyms

2
votes
2answers
41 views

angular JS difference between these two ways of calling a web service method

Doesn't matter whether I am posting or deleting etc.. I would write this: $http({ method: '' url: '', data: '', headers: '' }).success(function(data, status, headers, config) { ...
0
votes
2answers
25 views

angularjs $http.put changes my URL

I was trying to make a $http.put request with angularjs. What I do is just: $http.put("http://mi-url/personalized_product_custom_pages/2") What it really does is a request to: ...
0
votes
2answers
128 views

AngularJS $http loading screen compatibility

I've used the following angular module to create a loading screen until all $http requests finish. It works fine on angular 1.0.7, but doesn't work on angular 1.2.10 . I need to use angular-resource, ...
2
votes
1answer
866 views

AngularJS API call error with $http GET

I'm trying to create a simple app using Angular that will consume my API. I'm using a VM to run the code, and I access it on my computer, so to call the API from my machine I can use cURL or any other ...
1
vote
1answer
448 views

ng-grid won't load header row template when using $http interceptors to modify request url

Our application uses an $http interceptor to add tokens to $http requests as a form of security, the token that the interceptor adds are updated every 5 or so minutes. We now want to use ng-grid. ...
0
votes
1answer
12 views

Angularjs http basic auth with username and password for Pivotal Tracker api

I'm trying to develop an application to get the Pivotal Tracker stories. First of all I need to do basic authentication to get my Pivotal Tracker token. Using PHP cURL, I'm doing like this, curl -X ...
0
votes
1answer
32 views

AngularJS $http.get cache not working

After next(Route) to other page, come back it still call back the link. How to cache JSON data from http call to optimize performance? Try some solution but not working $http.get(url, { cache: ...
0
votes
1answer
292 views

$http error handling in angular

$http in my angular project not able to recognize 40X(401,403,405...) errors on iOS. I am using 1.2.10 angular version and Cordova version 3.4.0. Below is the code I am using: ...
0
votes
1answer
39 views

AngularJS: issues creating an API request

I have a scenario in which I have to deal with a misconfigured server, which only understands a stringified JSON. What works with the server is: var req = JSON.stringify({id: 0, method: ...
0
votes
1answer
50 views

Angular - How to Project $http Response

I want to project the result of my $http call into another model in order to make the projection global to the service call. In other words, the result i get from my http/api call is not using the ...
1
vote
0answers
153 views

AngularJS 1.2 $http seems to cache POST requests when no data is passed

I'm having an issue with AngularJS 1.2 POST requests using $http service. On a button click, I trigger a POST request like so: $http.post('my/url').success(function(responseText) { // Do ...
0
votes
0answers
28 views

angularjs sending cross origin POST to a Ruby on Rails create method

None of the other questions about this seemed to give a descriptive question and/or receive a thorough answer. Scenario Use angular to send cross-origin JSON post data to rails create method. Code ...
0
votes
0answers
16 views

How to cancel an intercepted $http request in angular based on its httpConfig info?

I am using angular-http-auth package that is an HTTP interceptor for angular that detects 401 Non-Authorized requests and allows to delay request and perform authorization before it. However, I have ...
0
votes
0answers
51 views

AngularJS How do I make sequential $http calls to access more data?

For the AngularJS $http service, How do I loop $http calls in order to access sequential data, while each call needs the previous return data to be used in the next call? I want to make sequential ...
0
votes
0answers
247 views

Sending HTTP Post with multiple data through AngularJS

I am using AngularJS. I would like to send multiple data in a HTTP post through AngularJS. The backend runs Cakephp and I have verified that the Rest API works through python HTTP-post. I have this ...
0
votes
0answers
121 views

Angular resource dynamic uri

Once I was using $http in calling all my apis' endpoint. But lately I read that using $resource is much more robust or best practice. Now I'm migrating all my $http call to $resource and I got bump on ...