2
votes
2answers
34 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
103 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
620 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 ...
0
votes
1answer
136 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
35 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
49 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
22 views

Authenticating angular to get and post on MVC4 site using Windows Authentication

I am currently developing a website using AngularJS, the application is ment to post and get data to and from an already running MVC4 application. This MVC4 application is using Windows ...
1
vote
0answers
124 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
171 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
100 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 ...