Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
547 views

Cannot access AngularJS $http error response data

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
1k views

NodeJS and AngularJS: Download file $http.get() and save to folder

I'm developing an Electron app using NodeJS and AngularJS to download mp3 files from a web service and save them to a specific folder. To accomplish this, i'm using AngularJS $http.get() to download ...
Ricky's user avatar
  • 3,122
1 vote
2 answers
332 views

Sending variable by http get

I have problem with sending variable by http.get, can someone correct me? $http.get("/product/products", { 'quantity': 5 }).then(function (resp) { $scope.products = resp.data; }) Thanks much
Turqus's user avatar
  • 117
1 vote
3 answers
72 views

Controller not logging response from Nodejs using Angular $http service

I created a form and onclick of the form i want to see the response from the server(nosejs). In Angular Controller Im calling the service. The response is visible when called from the service itself, ...
Somename's user avatar
  • 3,444
0 votes
2 answers
1k views

How to check user token in Angular?

I generated token with JWT using node and angular, and can't check if user is authorized. Node: module.exports.authenticate = function(req, res) { var user = new User(req.body); User.findOne(...
Giuli alasania's user avatar
0 votes
1 answer
222 views

node uploading file $http.post from angularjs has undefined req.body

I'm building a file upload functionality with my angularjs app that would upload a file to my node api that will ftp to a cdn server. Right now I'm stuck with just getting hte file. I tried using ...
gdubs's user avatar
  • 2,754
3 votes
2 answers
72 views

NodeJS rest api with mysql cannot iterate on the output format

Guys I followed a tutorial about how to implement a rest api with node+express+mysql and here is a route from inside my code REST.js file: router.get("/companies",function(req,res){ var query = "...
Abdelaziz Dabebi's user avatar
1 vote
1 answer
580 views

AngularJS $http.post() returns 404

I have been trying to learn following through the tutorial "CRUD app with AngularJs, Node js, express js, Bootstrap, EJS, MySQL" by Shiva Adhikari when I realized that I was stuck at part 5 of the ...
Daniel Netto's user avatar
0 votes
1 answer
3k views

HTTP headers are not being sent in CORS GET from AngularJS application

My problem is that HTTP headers are not being sent from my AngularJS HTTP GET requests. However, for a HTTP POST, I do see the headers being set. These HTTP requests are over CORS. Although there are ...
Jane Wayne's user avatar
  • 8,955
7 votes
4 answers
38k views

How to pass client-side parameters to the server-side in Angular/Node.js/Express

Probably a very basic question, but I cannot seem to find a simple answer. I have a GET method leveraging Angular's $http that is requesting a promise from a particular url (URL_OF_INTEREST). On ...
WJA's user avatar
  • 7,044
5 votes
2 answers
8k views

Blank PDF returned while making a POST Request but works fine with GET

I have a AngularJs frontend and a NodeJS backend. I am trying to build a PDF on NodeJS based on some parameters from AngularJS and return the PDF in response. The code I am using seems to work fine ...
Sambhav Sharma's user avatar