Tagged Questions
0
votes
2answers
17 views
Building a '$resource' service for multiple API calls
I have created a factory service that can get data from an API with the following code.
app.factory('Book', ['$resource','$http', function($resource, $http) {
return ...
-1
votes
1answer
22 views
POST 404 Not found.. Angular js
here i'm sending data through $http.post to data/user.php
app.factory('loginService',function($http){
return{
login:function(data,scope){
var ...
0
votes
1answer
33 views
How to $http.post with payload in data?
How do I post data from a form in AngularJS?
<form data-ng-submit="doSomething()">
<input type="text" data-ng-input="do_obj.text"/>
<input type="email" ...
0
votes
1answer
153 views
AngularJS controller scope won't sync with promise
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 ...
1
vote
1answer
66 views
Pass multiple parameters to $http.post?
I am trying to do a post request to save data in the server using the following url:
url = /api/projects/:projectId/scenarios/:scenarioId
I want to pass projectId and scenarioId. How can I do that ...
2
votes
1answer
620 views
AngularJS API call error with $http GET
I'm trying to create a simple app using Angular that will consume my API. I'm using a VM to run the code, and I access it on my computer, so to call the API from my machine I can use cURL or any other ...
0
votes
1answer
63 views
Angularjs service does not perform more than one http request
I have a problem with a service angularjs , do not make more than one http request .
The service :
.factory('checkpoints', function($http, user_auth) {
var promise = $http({
...
8
votes
1answer
3k views
Getting AngularJS Error: “[$rootScope:inprog] $digest already in progress” without a manual $apply
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 the ...