angular-http Questions
2
Solved
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 wor...
Longsome asked 20/6, 2013 at 22:45
4
Solved
I have this piece of jQuery code that works fine cross origin:
jQuery.ajax({
url: "http://example.appspot.com/rest/app",
type: "POST",
data: JSON.stringify({"foo":"bar"}),
dataType: "json",
c...
Krisha asked 26/8, 2012 at 16:8
3
Solved
I've just started learning Angular.js. How do I re-write the following code in Angular.js?
var postData = "<RequestInfo> "
+ "<Event>GetPersons</Event> "
+ "</RequestInfo&g...
Chirp asked 9/4, 2013 at 6:20
2
Solved
I am new in angular2 and I broke spend a lot of time to find a solution, but I didn't. I want to convert a oberservable from a http call store in a class.
I have the following:
json file
[{
"n...
Goldplate asked 12/2, 2017 at 16:16
3
Solved
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 lik...
Enplane asked 5/5, 2015 at 12:9
12
Solved
I recently posted a detailed description of the issue I am facing here at SO. As I couldn't send an actual $http request, I used timeout to simulate asynchronous behavior. Data binding from my mode...
Dispensation asked 20/9, 2012 at 3:36
5
Solved
I have developed one dashboard application in angular js which is having search functionality and multiple views with lots of different data coming from that search functionality.
Its single page ...
Diglot asked 21/12, 2016 at 7:16
2
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?...
Olivero asked 18/11, 2013 at 13:12
2
Solved
I am trying to access the header 'error-detail' as you can see in the browser network inspector (link above), the header gets returned. Server-wise I have also added the custom header to the 'Acc...
Token asked 28/11, 2016 at 20:30
3
Solved
Although I am working with the HTTP promise object in AngularJS, I don't have a clear concept of what an HTTP promise object actually is and what the is difference between an HTTP promise object an...
Inosculate asked 20/11, 2016 at 14:51
4
I'm new in AngularJS. I'm trying to make a request to a web service. I would like to implement a progress bar that tells me what percentage this request. Maybe someone has a basic example of which ...
Angeliaangelic asked 5/5, 2016 at 14:0
3
Solved
I have the following Angular function:
$scope.updateStatus = function(user) {
$http({
url: user.update_path,
method: "POST",
data: {user_id: user.id, draft: true}
});
};
But whenever this...
Meurer asked 7/12, 2012 at 8:0
1
Solved
Get this "No provider for ConnectionBackend!" error when trying to use http with a promise.
main.ts
// ... tl;dr import a bunch of stuff
platformBrowserDynamic().bootstrapModule(MyModule);
my...
Eyas asked 18/10, 2016 at 2:6
3
Solved
when I set the $http to cache requests, I still see duplicate requests (with the same url and same data) sent to the server from browser network,
$http.post(url, data, {cache:true} ).success(funct...
Rubie asked 13/10, 2016 at 10:45
2
Solved
NOTE:
I've found a possibly related issue that warrants a new question here
This is a weird problem. I've been using angular over the course of 2 years and have never run into this problem.
I'...
Leucocyte asked 29/3, 2016 at 21:51
1
Solved
Very strange error I'm experiencing.
I have two methods in controller which are called by angular js http get event.
First one works fine, second one is throwing CORS error, not sure how is that...
Sabah asked 14/9, 2016 at 19:7
7
Solved
I need to send a GET request using the $http service. One of the parameters will be an array of ids. The url looks like this one mysite.com/items?id[]=1&id[]=2&id[]=3&id[]=4
I tried th...
Boysenberry asked 13/11, 2013 at 15:32
4
Solved
Im trying to get data in a Json format from a remote WS using Angular and im having some trouble.
The data comes from the web service correctly but i cant use it inside the controller.
Why is that?...
Gourmont asked 3/6, 2015 at 15:53
1
Solved
I need to do a http request to a mail chimp subscription list via a component post
I've read the mail chimp documentation and couldnt find anything on this.
I also tried their mail chimp embedded ...
Sateia asked 3/2, 2016 at 15:5
2
Solved
I'm building a Facebook Tab using Angular. I'm doing a $http request to a PHP page on the same domain. The request looks like this:
$http({
method: 'JSONP',
url: '/api?action=saveResult&poin...
Cockroach asked 27/3, 2015 at 13:44
4
Solved
I am trying to get to Web API GET controller using $http.get in angular application as follows :
$http.get(BasePath + '/api/documentapi/GetDocuments/' ,
{
params: {
PrimaryID: ID1,
AlternateI...
Zohar asked 17/12, 2015 at 13:7
2
Solved
Unfortunately, we're stuck running 1.2.26 (will upgrade to 1.2.28 when it's gemified).
In the meantime, how can I patch (heh) $http so that the short-hand patch method is available? I'm pretty new...
Clyburn asked 29/9, 2015 at 20:43
1
Solved
Watching a lot of Egghead.io videos, I noticed that a common pattern is to return a custom promise and resolve it in the callbacks.
.factory('myFact', function($q, $http) {
return {
getData: fun...
Scrawly asked 16/3, 2015 at 17:28
1
Solved
JsonP returning "Uncaught SyntaxError: Unexpected token :" AngularJS - routingnumbers.info
I've researched this question a ridiculous amount and would hope that someone can help diagnose what is wrong.
I've already tried looked at the following SO questions: (SO wouldn't let me post mor...
Nonflammable asked 8/10, 2014 at 16:50
2
I am using the Angular.js $httpBackend to test some services that wrap $http calls (this is in ngMock, not ngMockE2E).
It seems that things like expect and when are sensitive to the order of URL q...
Paraphrastic asked 12/3, 2014 at 20:28
© 2022 - 2024 — McMap. All rights reserved.