Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
28k views

I'm trying to do a http request inside Angular.js factory. Initially I had used Fetch API and the console didn't show any error. I implemented it using $http along with $q and now it shows errors on ...
cmgchess's user avatar
  • 10.3k
0 votes
1 answer
43 views

I wish to send a particular data in all the $http calls. Can i define it somewhere so that i need not alter all the $http calls. For example, $http({ method: 'POST', url: serviceUrl, ...
Mithun raj's user avatar
0 votes
0 answers
342 views

I'm able to display results and search for data from spreadsheet which has only one sheet. Using od6 as JSON URL : var url = "https://spreadsheets.google.com/feeds/list/...
Tejo Sai Kumar EEPU's user avatar
1 vote
2 answers
646 views

JsonResult method not calling through $http call, I am working on a project that uses ASP.NET MVC, AngularJS I am calling a mvc controller from AngularJS. I am getting an jsonresult as in the call ...
hashim's user avatar
  • 135
0 votes
0 answers
327 views

Want to send image data through ajax to the controller .But error 415 gets .I am using angular js and send images to the controller . But error ocurs . Please help fd= new FormData(); ...
Tridib Chandra's user avatar
0 votes
1 answer
39 views

I've developed a ASP.NET WEB API Angularjs application and after i published it in IIS server it was throwing Unexpected identifier error at URL of below code. function getAllWeeks() { var ...
user11130182's user avatar
0 votes
3 answers
122 views

I have written a custom angular service that returns the session id after making a post-call to the WCF service. I can see on the chrome's network tab that the call has returned the session-id but ...
Dex's user avatar
  • 79
-1 votes
1 answer
87 views

I am trying use the promise chaining for the $http.get calls I am making from my angular application $http.get(url, config) .then(newViewRequest) .then(function (response) { // success async ...
trx's user avatar
  • 2,177
0 votes
2 answers
191 views

I am trying to call a endpoint using $http.get and check if the succsess code is 200 then use the response data otherwise I need to call other endpoint. I tried to check if the call is success or ...
trx's user avatar
  • 2,177
0 votes
1 answer
238 views

I have an AngularJS directive that calls data from an api using $http (ng.IHttpService) with no problems. I have the 'click' event bound to a function and want to call a POST request on the same api ...
Alastair Gordon's user avatar
0 votes
2 answers
416 views

I can't access the output variable from my 1st http get request, i need this data for another http Post request. None. $scope.submit = function(x) { $http({ method: "GET", url: url + '...
aintno12u's user avatar
  • 401
0 votes
0 answers
153 views

I'm trying change https://akveo.github.io/blur-admin/ project. Its controllers are all in js format and I can't migrate them to typescript. So now I can't import any libraries to my controllers (I ...
A.Risheh's user avatar
0 votes
1 answer
40 views

AngularJS ng-repeat not changing when array changes I have a controller: <section data-ng-controller="FilmController"> <article data-ng-view></article> </section&...
Adam Cole's user avatar
  • 173
0 votes
3 answers
567 views

How to pass global variable value from one function to another function in angular? I have 2 global variables as: $scope.genewtId = null; $scope.data1 = null; I have 2 angular functions which look as ...
meallhour's user avatar
  • 15.9k
0 votes
0 answers
323 views

I have problem with error in angularjs: Error: [$http:baddata] Data must be a valid JSON object. Received: 'test string test string' Parse error: "{}" So if I understand it correctly, the response ...
emka26's user avatar
  • 463
1 vote
1 answer
550 views

I'm running a function, and when I enter data correctly it does exactly what I need it to, but when there is invalid data provided I want to return an error message to the user. As you can see in the ...
mcadio's user avatar
  • 769
0 votes
1 answer
114 views

i'm trying to pass a value to a php file using Post when i do that and i want to read the value from php as json it keeps telling me it's undefined. I don't know where is the mistake this is my ...
Rawand's user avatar
  • 16
0 votes
2 answers
180 views

I'm facing some difficulties while trying to understand why $q.all returns the response of the last promise in array, for all promises given: function getGlobalData() { $q.all( [ ...
user3819295's user avatar
2 votes
1 answer
2k views

angularjs $http.post is refusing to use my Content-Type I am working with a contractor - their team are making server-side APIs while I'm putting together a javascript application using angularjs. ...
Wolfman Joe's user avatar
1 vote
2 answers
338 views

I have a simple piece of code that sends data to php for processing and then it returns it. I would like to ng-repeat that data in the page, I just can't tell what isn't right. I must point out to the ...
Pwner's user avatar
  • 65
0 votes
1 answer
51 views

I want to call a callback function but i can't get the data because my call is wrong. I tried: //function with callback filterList: function(type, cb) { if (type == 'all') { var resource = ...
Faculty's user avatar
  • 69
0 votes
1 answer
373 views

Angular js code var app = angular.module('myApp', ['ngResource']); app.controller('UserController', ['$scope', '$resource', '$http',function($scope,$resource,$http) { $scope.deleteRec = ...
Vignesh_E's user avatar
  • 167
-1 votes
2 answers
169 views

I am new to angular-js and building a simple to-do application. I am creating a task and displaying the created task in a html table using ng-repeat. But the problem is that after posting the data, $...
Sampath's user avatar
  • 19
1 vote
1 answer
44 views

I am trying to make a post request with angularjs to php. The post response is always 200 OK and the returned 'data' variable in the response is empty always. I am kind of new at this as you can see, ...
user avatar
1 vote
0 answers
61 views

I'm using angularjs HTTP interceptors to intercept all my calls to the back-end, is it possible to give some exceptions to some specific HTTP calls? I've been on Google for the past 2 days and can't ...
amaugo somto's user avatar
1 vote
1 answer
232 views

I am using a service that will send back XML with data in response. As a rule, everything works fine but sometimes the server incorrectly sends empty XML, without data. var isokLayer = $http({ ...
Mikos's user avatar
  • 23
0 votes
1 answer
37 views

Hello Everyone i am new to angular js and i have written the following page which suppose to display a table of employee details which is coming from " http://localhost:8080/SpringRestHibernateWebTest/...
ARNAB2012's user avatar
  • 400
0 votes
1 answer
540 views

AngularJS not working when I pass controller to the view I have a problem and I can't troubleshoot it. In my simple app (very simple) I have a service that provides of users info. In angular I have an ...
Guido Caffa's user avatar
  • 1,251
1 vote
2 answers
806 views

I'm trying to get some information from a server in an html page of an AngularJS app. The method itself is working fine, however, when I call the function in my html file with $scope. I get a $...
David Kooijman's user avatar
0 votes
1 answer
581 views

I have a simple cross domain service designed to handle the Simple CORS request. I am able to call it through plain xmlHTTP call or jQuery($.ajax) but its throwing Access-Control-Allow-Origin error ...
Amitesh's user avatar
  • 1,517
0 votes
1 answer
772 views

The following simple insert record method works in Postman but I can not get it to work in my AngularJS controller. Postman Headers (Post) Key ContactID Value 0 Key FName Value John Key ...
Jeff Breuninger's user avatar
0 votes
1 answer
203 views

I am developing an ionic application by using Angularjs. In my application, I have to integrate with devextreme component like Datagrid. When I tried to put JSON locally and display in devextreme ...
Chan Yoong Hon's user avatar
0 votes
0 answers
82 views

I need to see if the request starts from an internal or external network. How can I intercept the http in angular 1.7 request and find the information I'm looking for?
Alessio Frabotta's user avatar
0 votes
1 answer
27 views

This is a function that gets executed after submitting a form which then submits data to an api, all of this is being done in angular 1.5 using the $http service I have used postman to test this ...
William's user avatar
  • 41
1 vote
3 answers
238 views

I am using get API to request data from a specified resource. $http.get('http:...').success(function() { }); But I am getting error "SyntaxError: Unexpected token r in JSON at position 1", How ...
Bhagesh Arora's user avatar
1 vote
1 answer
95 views

Maybe someone will help me. I write an app in angularjs, I have a file named list.html which retrieves a list of posts from jsonplaceholder and lists them, with a link to the details of the post. In $ ...
PawelC's user avatar
  • 1,218
2 votes
0 answers
21 views

Hello I have an application that creates an object which holds a Date variable. The object is then passed into an http update function. Unfortunately, the update when it goes through everything looks ...
paul590's user avatar
  • 1,445
0 votes
2 answers
57 views

I have a newbie question here. I am coding a factory in angularJS. With it I want to have a list of users, and also a method to fill it. So this is my code ... The factory app.factory("...
user avatar
0 votes
0 answers
580 views

I am calling a backend API using a factory method in angular. The factory method returns $http directly. In my controller, I am calling the factory method and fetching the data. The factory returned ...
Hari Prashanth's user avatar
1 vote
1 answer
122 views

The question is hard to describe so let me post an example. The context is AngularJS $q, but any solutions based on ES6 Promise are also welcome. Suppose we want to cancel an $http request. In ...
charlee's user avatar
  • 1,389
0 votes
3 answers
417 views

i want to get all data at once through AJAX($http) request and apply to all controllers i picked this code from google it shows the i have to make requests for each controller were i can get data in ...
Vikas Kandari's user avatar
1 vote
1 answer
663 views

I try to use Angularjs http service to call my PHP API. Everything working fine in Browser. But, when I test it on my Android Phone, it will not work. My Issue: In Android PhoneGap Application, ...
I am a Student's user avatar
0 votes
2 answers
286 views

Hello all i was trying to get response from $http.get method and append it to $scope object but it was stating undefined. After some research and referencing found the way to assign the data to object....
Santosh Upadhayay's user avatar
0 votes
1 answer
68 views

I am getting a response from the server and due to async behavior I instantiated scope object first before the call and used it in method. I am getting the response in self-object but unable to bind ...
Santosh Upadhayay's user avatar
0 votes
1 answer
349 views

I am trying to get details from an external API but got stuck in getting the JSON response. Here is my service code: angular.module('app').factory('appService', appService); appService.$inject = ['$...
Learner's user avatar
  • 21.5k
0 votes
0 answers
43 views

i am hitting third party library from angular js. They sent response inside callback function . i am using http Jsonp method to try to get that response.i didn't get any response. getActiveProduct: ...
user3760261's user avatar
1 vote
1 answer
1k views

Im writing a little service using c#(.net framework) and odata V4. My clientside is AngularJs. On my localhost everythink works fine, but when Im releasing my code to the server(widows server 2012 R2) ...
Elad Motola's user avatar
0 votes
2 answers
362 views

I have an application with Angularjs and Coldfusion. I have a form with some http queries for populating drop-down list. When the session server is out, I retrieve the status from the server, I ...
coeurdange57's user avatar
0 votes
1 answer
832 views

AddClass.cshtml File has the form and ng-validate uses the validation option. When I click the Add Class button in cshtml file without entering any value in Textboxes, it should show error messages ...
Abdullah Shabbir's user avatar
0 votes
2 answers
2k views

While calling a service, it calls API using $http method. In the same service I want to add conditional statement which is responsible to return another success or failure object without calling any ...
ajitksharma's user avatar
  • 2,017

1
2 3 4 5
9