angularjs-http Questions
19
Solved
I'm using AngularJS $http on the client side to access an endpoint of a ASP.NET Web API application on the server side. As the client is hosted on a different domain as the server, I need CORS. It ...
Fluvial asked 12/3, 2014 at 6:13
4
I have an angularjs app, in which I have an interceptor that adds the authorization token to the header of each request.
However, somewhere in the application I need to use and external API where...
Quite asked 6/6, 2016 at 3:48
3
$http in my AngularJS project not able to recognize 40X(401,403,405...) errors on iOS.
I am using 1.2.10 AngularJS version and Cordova version 3.4.0.
Below is the code I am using:
TE_SERVICES.fac...
Compunction asked 6/5, 2014 at 5:53
4
I am trying to upload a file in AngularJS using ng-upload but I am running into issues. My html looks like this:
<div class="create-article" ng-controller="PostCreateCtrl">
<form ng-uplo...
Recollect asked 20/6, 2013 at 14:48
4
Solved
A node.js server gives "This is a string". (writeHeader, write( string), end).
When performing a $http request, I see that the node.js server is responding and sending the information back.
In ...
Unblushing asked 10/8, 2016 at 19:45
3
Solved
app.controller('myController', ['$scope', '$http', '$filter', function($scope, $http, $filter) {
The above is an example of my code where I am trying to use $http.get and also $filter inside my c...
Immerge asked 18/6, 2014 at 11:43
9
Solved
Getting this error:
angular.min.js:122 TypeError: $http.get(...).success is not a function
at getUserInfo (app.js:7)
at new (app.js:12)
at Object.invoke (angular.min.js:43)
at Q.insta...
Dalmatic asked 16/12, 2016 at 11:55
3
Solved
First of all, I am not good at angularjs.
While I've been studying about $q, I faced a weird problem.
When I use $q.all, I put $http in regular sequence expecting to get results in same order,
b...
Clarkia asked 11/9, 2017 at 9:35
11
Solved
I am new to AngularJS, and for a start, I thought to develop a new application using only AngularJS.
I am trying to make an AJAX call to the server side, using $http from my Angular App.
For send...
Normanormal asked 12/7, 2014 at 6:58
4
Solved
Other posts on this error always include someone trying to $apply without using a safe apply, but that's not the case in my example. My function IS successfully returning the data I requested from ...
Lupelupee asked 18/2, 2014 at 15:55
2
I am using ui-grid to bind data from Role Table which contains Department Id as PrimaryKey. I am calling Web Api to get all the roles in the table and show in ui-grid.
Department Table
Role Tab...
Sweetie asked 1/5, 2017 at 10:33
1
Solved
I have webApi return me a blob file that I have to display.
how can I know what type is the blob that I got? It could be anything, pdf, doc, jpeg etc.
$http({ method: 'GET', url: (itemsUrl), respo...
Whippletree asked 26/3, 2017 at 13:16
5
Solved
Is there a way to return an HttpPromise (or something similar) to mimic a call to $http? I want to set a global variable that indicates whether the real HTTP request is made or whether a fake HttpP...
Imprudent asked 24/6, 2014 at 15:11
1
I am accessing an API via Angular $http requests to gather information for different football teams.
If I were to be only accessing one team, this would be fine - I would create a Service that ma...
Metatarsus asked 30/4, 2016 at 10:58
3
Solved
I am currently using $q service from angular to make API calls like this:
var deferred = $q.defer();
$http.get(config.apiHost + details.url)
.success(function (data) {
deferred.resolve(dat...
Laszlo asked 28/6, 2016 at 15:19
4
Solved
Probably a very basic question, but I cannot seem to find a simple answer.
I have a GET method leveraging Angular's $http that is requesting a promise from a particular url (URL_OF_INTEREST).
On...
Sesame asked 13/10, 2015 at 16:53
6
Solved
I'm using $http in AngularJs, and I'm not sure on how to use the returned promise and to handle errors.
I have this code:
$http
.get(url)
.success(function(data) {
// Handle data
})
.error(...
Roentgenoscope asked 9/5, 2014 at 7:54
4
I still can't understand the role of using the $q service, (what exactly will it add) if you want to create a service that need to call only one API via http , in this situation I don't know why sh...
Abydos asked 1/4, 2016 at 20:46
5
Solved
Question from AngularJS noob.
I am trying to use an asmx web service to display grid. I tested the web service and it correctly outputs the JSON data.
Here is my controller
app.controller('SetupC...
Grimona asked 21/4, 2015 at 5:19
9
Solved
I am running an angular app on a local virtualhost (http://foo.app:8000). It is making a request to another local VirtualHost (http://bar.app:8000) using $http.post.
$http.post('http://bar.app:800...
Ulphia asked 13/1, 2014 at 22:30
1
Solved
I have read through all the posts where people get this issue where $http is not a function, and it looks like for the most part it is due to injections being done in the wrong order.
My module de...
Colettecoleus asked 23/3, 2016 at 20:33
2
Solved
The AngularJS documentation has a Deprecation Notice for the $http success and error methods. Is there a specific reason this abstraction was removed from the library?
Anthracoid asked 11/2, 2016 at 1:45
2
Solved
I've picked up a project and I'm trying to return some data from a service to my controller. I've been at this for about 12 hours, and have tried different methods. They all usually result in this ...
Christoperchristoph asked 7/5, 2014 at 14:32
2
I am familiar with Jquery AJAX call, which has different callbacks like beforeSend, success, complete, etc.
This is the example AJAX call with Jquery:
$.ajax({
url: 'register.php',
type: 'POST'...
Palila asked 3/3, 2014 at 7:0
1
I want to make an integration test with real calls to my server, so, I don't want to use the $httpBackend module from angular-mocks, So I try this:
beforeEach(inject(function($rootScope,_MembersDa...
Baseburner asked 11/5, 2015 at 18:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.