All Questions
736
questions
0
votes
0
answers
21
views
Trying to pass values through POST to a php file using $http service of angular js does not work [duplicate]
Basically, I'm creating an e-commerce website for a college project. My intent is that when a user clicks on the add to cart button, the name of the book and it's price gets sent to an external php ...
0
votes
0
answers
28
views
PHP Post not getting data from AngularJS
I'm working on a small AngularJS/PHP website - this is just the login screen, and i can't figure out what the issue with the PHP side is. If i hardcode the name\password in PHP, it queries the ...
1
vote
2
answers
541
views
How to pass method get/post as a function parameter?
There are two almost the same functions. First function executes get().
function sendGet(url, $http) {
$http
.get(url)
.then(function() {
alert('Ok');
}, ...
0
votes
1
answer
502
views
Cannot set results of an api call to a variable in an Angular 1 application
I am trying to call an api, and set the results to a variable. I am able to successfully make the call and see the data when I log it in the console, but later when I try to use the variable it is ...
0
votes
0
answers
41
views
Ending an AngularJS connection
How on earth do I do that with AngularJS?
I'm using this code to generate a client side table with a search bar. ASP.NET MVC is the server here.
app.controller('GenTable', ['$http' ,'$scope', '$...
0
votes
0
answers
20
views
Why am I not seeing any data file received in my PHP file coming from AngularJS $http.post
I am trying to post a file (will be of type pdf or image), uploaded by the user in a form. The file will be taken by an AngularJS directive set 'onChange', sent through 'myPostr' function which is ...
0
votes
0
answers
146
views
How to specify Content-length header for AngularJS $http Post call
I am executing a post request with AngularJS $http.post(URL,data). However Content-Length header is not passed in the request header. How to specify the Content-Length header explicitly? I am able to ...
-1
votes
1
answer
43
views
AngularJS, Google Chrome preventing my app to make post requests, need help adding headers [duplicate]
I am pretty new to AngularJS, APIs and coding in general. I created this AngularJS app that let's the user make a post request to an API that I have created. It is a simple parenthesis checker, and ...
0
votes
0
answers
27
views
Angular js http post always executing successcallback
I am trying to post something using http post and was referring to their official documentation and used the same example from the official documentation. However whenever there is an error then it ...
1
vote
1
answer
490
views
AngularJS, NodeJS: save data to a Json file or a database
I am new to AngularJS and nodeJS And I can't seem to find the information I need, I am hoping someone here can help.
I am creating this small app as a training, it's basically a personal lexicon: the ...
0
votes
1
answer
406
views
Why is the data in Angular Web API backend controller always empty after Angularjs POST request?
Im new in angular, tried to search many posts but none helped me to receive data in controller method after angular js post. Does anyone know why parameters of model object are empty even though ...
0
votes
1
answer
21
views
AngularJS ng-click attribute not updating on post request within ng-repeat
This is the pug file for the catalog
doctype html
html
head
title Tradecademy
meta(name="viewport", content="width=device-width, initial-scale=1")
script(src="https://ajax....
0
votes
1
answer
307
views
Post array of objects with AngularJS $http
I am making an app where a user can submit multiple links to a form. The links are then stored in an array of objects before posting them to my backend. But somehow my JSON structure turns up like ...
0
votes
0
answers
35
views
angularjs: http.post() executes successfully but doesn't post anything to server's file
I am completely new to
Angularjs
and I should send a string from client to server using Angularjs.
I have a java application as a server and I deployed it using tomcat8.
assume it's name is '...
0
votes
1
answer
509
views
Getting value null while uploading file through AngularJs in Laravel
When I am trying to upload a file using POST Request in Angular Js then I can not able to upload the file because it shows file value null
This is angular part app.js
$scope.submitForm = function(...