Tagged Questions
0
votes
0answers
15 views
$httpBackend cannot flush() in the demo
http://docs.angularjs.org/tutorial/step_05
I keep getting errors from executing the karma.conf.js, with the error
No Pending Request to Flush!!!
From What I understand the $httpBackend is the way ...
0
votes
1answer
17 views
Variable inside $http not reflecting change outside block
I am writing a web app in Angular, this piece of code is meant to get test XML data as text from the server. I am using Angular's $http service to send a GET request from the server. The variable ...
0
votes
1answer
106 views
Angular JS POST request not sending JSON data
I am trying to send an object as JSON to my webservice in Flask that is expecting JSON in the request data.
I have tested the service manually by sending JSON data and it works fine. However, when I ...
0
votes
1answer
20 views
Trying to use AngularJS + $http.get to access the Instagram API
Can anyone point out any errors? I'm new to basically all of this and I've just been using the angularJS tutorial, and the API and a few other resources to try and piece this all together with not ...
0
votes
1answer
19 views
AngularJS $http undefined
I get TypeError: Cannot call method 'get' of undefined when running this module:
angular.module('EventList', [])
.config([ '$routeProvider', function config($routeProvider){
...
0
votes
1answer
33 views
share http.get data between factory and controller
I succesfuly created a factory that gets a .php file output (JSON),
My question is how do I access it from wihtin the controller:
myApp = angular.module("myApp", [])
myApp.factory "mainData", ...
0
votes
2answers
39 views
how to use factory/service for sharing information between multiple controllers in angularjs?
Im trying to load a JSON when app starts, and spread the data between all my controllers.
I know this is not very hard to do, but Im confused from all articles/answers I've read because they use ...
0
votes
2answers
49 views
AngularJS reducing HTTP request by combining javascript files
Using angularJS is great. Although i see a problem in that i have the following files:
app.js
controllers.js
filters.js
directives.js
services.js
That along with the actually AngularJS library ...
1
vote
0answers
35 views
Angular JS POST vs regular XHR
Trying to upload an image using angular's $http.post()
I'm setup like this, where file is the first file from the file input.
var fd = new FormData();
fd.append("content", file);
...
1
vote
1answer
40 views
Angular JS cancel $http call before calling a new $http
In angular JS 1.1.5 you can cancel previously started $http calls. These two link1 and link2 gives some explanation on how it works.
However I can't understand, how to use this in practice. I created ...
1
vote
1answer
97 views
How to do an HTTP Options request in AngularJS?
AngularJS' $http service doesn't provide for HTTP Options requests, and I very much would like to have them.
I created a Web API using Django REST framework and I'm trying to leverage all it offers ...
1
vote
1answer
52 views
Find the download status of an http get request in progress using Angular.js
I've searched all over the web and can't seem to find anything that says, one way or the other, whether or not I can get the status of downloading data during an $http.get request. The application I'm ...
0
votes
2answers
107 views
AngularJS - Unknown provider configuring $httpProvider
In the following code example:
myApp.config(['$httpProvider', function($httpProvider, $cookieStore) {
$httpProvider.defaults.withCredentials = true;
...
0
votes
1answer
20 views
using img templats with ngSrc sends text/html instead of image/gif when data array is loaded via $http
I have a template like this:
<img class="picto"
ng-repeat="module in modules"
ng-src="{{module.Source}}"
title="{{module.Title}}"
ng-click="module.handler();"/>
When I set ...
0
votes
0answers
121 views
AngularJS HTTP post throws exception
Greetings Overflowers,
My angularjs http.post throws an exception when my php server returns with HTTP error status 500 (Internal Server Error) although I have registered my error function to handle ...