426 questions
0
votes
1
answer
28k
views
getting Error: [$rootScope:inprog] $digest already in progress when changed from Fetch to $http + $q
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 ...
0
votes
1
answer
42
views
Pass a common data in all $http services in angularjs
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,
...
0
votes
0
answers
341
views
How do I display data from Multiple Google sheets using JSON feed URL
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/...
1
vote
2
answers
634
views
Call MVC Controller from AngularJS using JSON in ASP.Net MVC
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 ...
0
votes
0
answers
327
views
Getting 415(unsupported media type ) in ajax formdata post resuest to spring
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(); ...
0
votes
1
answer
39
views
AngularJs depoyed site SyntaxError: Unexpected identifier
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 ...
0
votes
3
answers
121
views
I am trying to return a data from custom angular JS service to the controller but it is always returning "{}"
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 ...
-1
votes
1
answer
87
views
Promise Chaining is not working as expected
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
...
0
votes
2
answers
187
views
$http.get to handle two different calls [duplicate]
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 ...
0
votes
1
answer
238
views
AngularJS - Directive - onClick function calling $http(POST) - $http is undefined?
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 ...
0
votes
2
answers
414
views
How to "pass variable from $http success to another $http request" in Angularjs?
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 + '...
0
votes
0
answers
153
views
how communicate backend without typescript in angular
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 ...
0
votes
1
answer
40
views
Service using $http not returning new data
AngularJS ng-repeat not changing when array changes
I have a controller:
<section data-ng-controller="FilmController">
<article data-ng-view></article>
</section&...
0
votes
3
answers
557
views
How to pass data from one asynchronous to another asynchronous function in AngularJS
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 ...
0
votes
0
answers
322
views
Strange behaviour of response when it isn't json in angularjs get
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 ...