Tagged Questions
1
vote
1answer
16 views
HTTP POST is submitting empty JSON array
$scope.submitBracket = function(item, event){
console.log("submitting form");
var jsonData = '{"userEmail" : "[email protected]","brackets" :' + JSON.stringify($scope.allGames) + '}';
...
0
votes
1answer
16 views
jQuery slider not working in angularjs
My slider wont come up on first time navigation of the page. However when I hard refresh the page then it comes up and also if I replace the <div ng-view></div> code with the front.html ...
1
vote
1answer
16 views
Production Node Application Can't Find SVG Files
In my local development application the svg files show up just fine with the following code (The curly brackets embed Angular.js variables):
<img ng-src="img/servant_{{servant.personality}}.svg" ...
0
votes
1answer
22 views
Performing simple authentication in Angular and Node
I have been struggling with performing simple authentication in my angular node application. I am well aware that there are ready to use angular-express yeoman kits out there. But I want to understand ...
0
votes
1answer
17 views
Update mongo array field from angular
I have this jade file:
<tbody>
<tr ng-repeat="lineas in datuak">
<td class="tdlinea">Linea:{{ lineas.linea }}</td>
<td data-ng-repeat="nireindex in ...
0
votes
1answer
14 views
Using Glimpse on a javascript website
I have a website that is written with Node.js/AngularJS that makes ajax calls to an ASP.Net mvc backend. Because I don't use the traditional 'Views' and 'aspx' pages, is there a way to use Glimpse in ...
0
votes
0answers
16 views
How to use Angular $cacheFactory in this case?
I would like to cache resources in my MEAN-stack application. I am trying to use $cacheFactory but it doesnt work.
Here is how my app retrive the data: controller <- service <- mongoose
So I ...
0
votes
0answers
8 views
Moongose auto-increment when document isn't unique
I’m building a node.js app that fetches geolocated photos from the 500px API based off a location search. The API request requires the page of results you want back.
Say for example I search for ...
0
votes
1answer
8 views
Running grunt-nodemon and watch concurrently with livereload
So the problem I'm having is with grunt-nodemon and watch runned concurrently, everything works except browser livereload.
If I run watch without concurrent, everything works just fine, but then ...
0
votes
1answer
23 views
With Bower, how do you include third party javascript in your build?
I just downloaded a javascript library, and I included it by copy pasting into index.html. Whenever I do a Bower serve or build, however, it is overwritten.
So far for my other javascript libraries ...
0
votes
0answers
16 views
Angular.js app stress testing [on hold]
How can I perform load/stress tests of my Angular.js application? It is deployed on Node.js invoking rest services from JBoss. I've tried to use Grinder but with no success.
I appreciate any ...
0
votes
0answers
21 views
(Token-based A&A): send the token on every request to the server
I am debugging a token-based A&A module in node.js + angularJS. In this approach, server authenticates the user and responds with a token. This token is saved in a local memory (client side) and ...
1
vote
1answer
49 views
Javascript (Angular) not loading when using Express
I'm trying to get my application deployed to a public domain using node.js, express.js, and Heroku (or Modulus.io).
Everything was working fine in the development environment. But when I try to ...
0
votes
1answer
24 views
Connect.sid is always undefined and req.sessionID keeps reseting
I'm quite new to NodeJS/Express/Socket.IO and have made a simple rock-paper-scissors app using Socket.IO communication (on the client-side I'm using AngularJS). That part of the app worked quite fine ...
3
votes
1answer
35 views
karma problems while trying to set up an angular project
I'm trying to set up an environment that supports angular/coffeescript/sass/jade.. and was told angular-curve does an excellent job.
I get stuck at this part: after cloning the repo and running npm ...
1
vote
0answers
19 views
karma start throwing useragent error
I generated an app using yeoman by doing this in a folder called sw-front:
yo angular
I installed karma like this
npm install -g karma
npm install -g karma-cli
grunt serve works fine.
karma -v ...
0
votes
1answer
11 views
receive data from flash and display on angularJS client side
I am trying to get data (a user's score), from an extremely simple flash game I made, to be displayed on a simple leader board which is displayed through AngularJS. You can get a copy of all of the ...
0
votes
1answer
17 views
Error: No module: ngResource (Node/Express with Angular)
I am getting this error:
Error: No module: ngResource
I have included a script reference in my index.html file, like so (along with ngRoute, ngSanitize, ngCookies, and a directive called ...
0
votes
1answer
21 views
Swapping Handlebars for Angular in MEAN app
I'm building a MEAN app with user authentication and I'm currently in the process of learning Angular (I like to learn by using whatever it is I'm learning in a practical way). Anyway, before I ...
0
votes
0answers
14 views
Implementing linkedin oauth2 with ionic/angularjs on frontend (hybrid mobile app) and expressjs+passportjs+mongodb on backend
My backend is setup on AWS and is running an expess webserver. It is configured with passportjs.
On the frontend I want all users to login through linkedin. When they press the button it issues a ...
0
votes
1answer
38 views
How to distinguish an authenticated user at client side with Passport and node.js?
I use Passport.js with MongoStore for authentication, I use express as web framework. Once a user has logged in he can access to content at a certain route.
I'd like to offer distinct contents ...
0
votes
1answer
78 views
Trouble-shooting with AngularJS in NPM start
I am a novice programmer trying to follow along the AngularJS tutorial, unfortunately there have been so many hurdles and I am stuck. I've been receiving this error regarding NPM install and NPM ...
0
votes
1answer
20 views
node-webkit with Express on Windows 8 “Error: listen EACCES”
Uncaught node.js Error
Error: listen EACCES
at exports._errnoException (util.js:677:11)
at Server._listen2 (net.js:1060:19)
at listen (net.js:1113:10)
at Server.listen ...
0
votes
2answers
18 views
Angular post request runs twice when calling api on node server
I have a http post request but it gets fired twice when i call the api.
Basically i know that node is asynchronous so might be waiting to run the sql to get the data but not sure how i can get around ...
0
votes
1answer
20 views
Is there a way to make an enum available all over the meanjs stack
I'm experimenting with the meanjs stack and I'm trying to declare an an enum like array in a single place and make it available everywhere in the project from Mongo all the way up to Angular. What ...
1
vote
0answers
37 views
AngularJS: Intercept non xhr requests
Is it possible to intercept non xhr requests with Angular?
I have this problem where if a user types in the URL, say /admin, the server returns a 401 if the user isn't logged in. But because the ...
0
votes
1answer
28 views
Why doesn't root request get the updated index.html
I am developing an angular app. Whenever I modify the index.html, a request to localhost:8000 doesn't get the updated index.html. Why is that? I am using nodejs to host the server. I have tripped over ...
0
votes
1answer
22 views
NodeJS and Express: Check if request is for CSS or JavaScript
I have this set up at the start of my routes:
app.get('*', function (req, res, next) {
req.xhr ? next() : res.render('layout/layout');
});
The thought is that if the request isn't XHR, return ...
0
votes
1answer
17 views
Angular.JS + Jade = angular not processing jade's embedding iframe
So I am trying to embed a video using jade and angular.js. I try using the following code in jade, but angular didn't process it, while when i type p {{video.updated_time}} there is no problem, but ...
1
vote
1answer
66 views
Key error inserting to MongoDB using node.js fail for some objects with out any key containing a dot?
I have a web form which uses Angular JS bindings and by a POST calls a route in my server code which by using a mongodb connection will insert to a MongoDB colllection.
The object I'm trying to ...
1
vote
2answers
29 views
Routing is serving JS files with HTML in AngularJS
I am created an AngularJS app and am creating a service that provides the user a link like localhost:8080/sync/03afdbd66e7929b1 which they are supposed to share with people and will bring them to a ...
0
votes
0answers
46 views
Download PDF (PDFKit) from ExpressJS to AngularJS
Using:
var doc = new PDFDocument();
doc.pipe(res);
doc.text('Add content here');
doc.end();
within an Express GET route I'm able to navigate in the browser and view the PDF. Once viewed it can be ...
1
vote
0answers
39 views
Best practices for modular css in node+angular app
For my app I'm using browserify to deal with javascript, and it is indeed awesome. I can modularize, transpile coffeescript, bundle, preinitialize minification with ngmin, minify, add source maps etc.
...
0
votes
2answers
37 views
Routing problems using NodeJS and AngularJS
I am building my first application using NodeJS & ExpressJS for the backend and AngularJS front end. I have all my front end routes working how I want, but I cannot figure out how to properly ...
0
votes
1answer
21 views
how does one use module.exports and require in protractor tests?
I am trying to use PageObject pattern in my e2e tests, but I am getting a message that module is not found (Error: cannot find module InsuredSearchPage)
in /acceptance/insured/search/SearchPage.js
I ...
0
votes
1answer
108 views
Running deployd and angular.js app on the same server
I'm trying to run a deployd API on the same server as my AngularJS app, but deployd seems to be conflicting with the app routing.
My deployd server is listening on port 5000 and looks like this:
var ...
1
vote
2answers
37 views
how do i install libraries not on npm using browserify?
I've been working with angular and using bower as a package manager. For a current project I want to use some npm modules in the browser and started with browserify
For my starter project I was able ...
0
votes
0answers
23 views
Access controller variable within jade loop
Sorry if this question has already been asked but I couldn't find the answer...
I have an angularJS app using jade as the render engine.
In my controller I have the following variable defined:
var ...
0
votes
1answer
29 views
SEO Redirect with Node.js Sails
I'm using Angular and Node.js and I have a redirect for bots to load pages for SEO content. In express I had something like this:
req.isBrowser = function () {
var pattern = ...
0
votes
0answers
46 views
How to Deploy MEAN stack to my hosted server?
I have a great working website built with MEAN and works great locally.
i wish to deploy it on my server,
but i never deployed a website
other than uploading the files to my website ftp.
Tutorials ...
0
votes
1answer
29 views
Angular/Node/Express/Passport - Issues when connecting to facebook(CORS)
i'm trying to use facebook authentication on my NodeJs server. i came to the tutorial of http://scotch.io/ and have it working locally when using a REST client(Postman, etc).
To improve the UI i ...
0
votes
1answer
42 views
GET request from server controller using MEAN stack
I'm using MEAN stack with MeanJs. The thing is, I have a task that requires calling a GET request from the server side (Expressjs) to another server (with a different domain name).
The code in the ...
0
votes
1answer
14 views
Angular, Expressjs and Lusca csrf protection
I am investigating csrf protection with my Angularjs and Expressjs (4.x) app.
I am currently trying to get Lusca (https://www.npmjs.org/package/lusca) to work having not been successful with the ...
0
votes
0answers
30 views
Failed to load resource: the server responded with a status of 400 (Bad Request)
bad request in client side of "findMessage" because all the rest- "insert","list".. are working
client:
angular.module('handleMessageService', []).factory('HandleMessage', ['$http', function($http) ...
0
votes
1answer
33 views
Socket.io emit from Express controllers
I'm quite new to Node.js / Express, and I'm using it as a backend for an AngularJS app. I've looked all over StackOverflow for some help on my problem, but I can't seem to figure out how to port the ...
-4
votes
0answers
33 views
What are best resources to kickstart on the MEAN stack (MongoDB, Express, AngularJS, NodeJS? [closed]
I am an experienced PHP developer. Have good knowledge of Front-end, and now want learn MEAN stack. I have no knowledge of any of them, so please guide me the best and quick resources to kickstart it.
...
0
votes
1answer
28 views
Working with an existing Grunt project - Getting JSHint Missing semicolon and errors
In an existing GRUNT project (http://gruntjs.com/getting-started), I did npm install and then grunt and I'm getting loads of JSHint errors (missing semicolon, mixed spaces and tabs, extra comma, etc ...
0
votes
0answers
13 views
Using Node net sockets to interpret and use flash data with AngularJS
I am trying to create a leaderboard for a flash game I made. At this point - the game I made sends the score (using XMLSocket, in Actionscript 3) - and I have node setup to write the incoming data to ...
0
votes
1answer
37 views
Angular.js http GET request, CORS issue while sending cookies
I'm working on a project using node.js and express.js on server side, and angular.js on client side. I've set up authentication on server side using passport.js. So when I login the session cookie is ...
0
votes
1answer
15 views
yeoman permission issue with nodejs and angular
I am trying to start an angular web app with yeoman but I get permission issue when trying to install the new generator. I can bypass and install generator with sudo but then I get the permission ...