0
votes
1answer
24 views

redirect to different route when root url changes

I am developing an anuglar + nodejs app and run into this problem. I want to set up the following url mapping: localhost:3000/ => node server serves index.html on server side and then anuglar serve ...
0
votes
1answer
14 views

How to run a node.js app on ec2

I want to run a node.js app on amazon ec2 instance. here's what I have done. npm install -g yo npm install -g generator-angular yo angular grunt serve and this is the snippet of the Gruntfile.js ...
0
votes
1answer
16 views

Angular resource action resulting in nested req in node/express

I'm building an AngularJS and NodeJS/Express application. All AngularJS resources are operating as expected except for the custom action I added which results in req.params and req.body in Express ...
0
votes
1answer
22 views

AngularJS tutorial can't open in Chrome Mac

Started official tutorial of AngularJS. It works fine in firefox, but can't open example and run tests on Chrome. Chrome Version 34.0.1847.116 node --version v0.10.26 Mac OS X Version 10.9.2 Tried ...
0
votes
1answer
13 views

Angular SEO for a directory multi-language app

I am doing an angularjs app with a nodejs-expressjs server. I want to do an app that it's similar to a business directory. I have doubts about if it's possible doing it SEO friendly to the all items ...
0
votes
0answers
16 views

Node Express Passport with Angular - not compatible?

I'm working on a simple web app running Node/Express on the server using Passport to authenticate via Google, etc. The client is using Angular. I'm unable to get Angular to play nice with Passport to ...
0
votes
0answers
9 views

Angular Server Side Pagination with filter

I am working on Angular on client side with web service as middle ware. I am using ngTable for pagination and filter. My Current code is : client side code(JADE) ...
0
votes
1answer
17 views

Unexpected Token < while running Mean Stack application

I am following Plurasight video tutorials on creating mean stack application. http://pluralsight.com/training/Courses/TableOfContents/building-angularjs-nodejs-apps-mean Everything was working fine ...
0
votes
0answers
21 views

Can't get CORS working in Firefox

I'm trying to get a simple example working with the MEAN stack and I noticed that my DELETE request does not work in Firefox. I believe this is due to CORS. When i click a link to submit a DELETE ...
1
vote
2answers
33 views

AngularJs ng-include and socket.io [on hold]

I'm new in this place and I'm no english so please forgive me if I make some mistake. My problem is the following one : I try to use angularjs and socket.io (with nodejs on server's side) So I have ...
-3
votes
0answers
37 views

Source code not working, anything wrong? [on hold]

I found some really great source code on a Node.js app for Cards Against Humanity online. I downloaded the code from GitHub, and opened it up. Everything was in order, I didn't touch anything, just ...
0
votes
0answers
34 views

mean.io what's the best way to set up an admin user + admin module

All the times I use http://www.mean.io/ I've got the hassle to set up an admin user + admin module + (if needs) manage acl What I do up to now: add this rule tomodels/user.js role: { type: ...
1
vote
1answer
61 views

Angular promises using multiple http requests

I have read a few forum posts before on angular promises but can't get it to work in my instance. I am using nodejs /locomotive for the backend and Angular form the frontend. I have the following ...
-1
votes
0answers
50 views

which is best database to use with node.js and angularjs single page application [closed]

I'm planning to do simple project management system to control my team works and I want this project management system to be Single page application and to use node.js and Express with angularjs and ...
0
votes
0answers
10 views

ng-href to load image from nodejs server get empty if dont refresh

i have a page with this code: <div class="pull-left well" style="margin-left: 1em;" ng-repeat="photo in photoList.photos"> <a ng-href="{{API_URL}}/orders/{{orderId}}/photos/{{photo}}" ...
0
votes
0answers
53 views

stop automatic sending request in node js

I use get method to send request but after some time before getting response it sends another request automatically. Is there any way to stop sending request automatically or send request after ...
0
votes
1answer
35 views

Download a file from Angular.js with Express.js

In my MEAN application I need to provide a link to download a file, the link must be hidden and not accessible by unauthorized users. So I came up with this idea of keeping the files inside the server ...
0
votes
1answer
23 views

$http.get error on ng-click function()

edit: just to clarify, I've omitted some of the input fields and other code, but included all relevant information. I have googled and I can't find a solution. I am running a function userSearch() on ...
1
vote
1answer
46 views

Node.js page transition no more working when I use AngularJS $routeProvider

I use Node.js as a server it's completely working well unless I add AngularJS to the stack, which broken completely all of my URL in Node.js. Specifically, I want to toggle the active of my tabs in ...
1
vote
1answer
27 views

prevent a direct access to files using AngularJs and Node.js / Express

Using Angular and Node.js / Express, is there a way to prevent a direct access to my partial .html files whilst still allowing the following route handling: My Angular routes look like this: ...
2
votes
1answer
46 views

URL gets changed on browser refresh ($routeProvider is used for client side routing)

I am using Angular for client and Nodejs (Express) for server side to build single page application. To support browser history for different view, I am using $routeProvider. It works well if I don't ...
-2
votes
2answers
46 views

Is my application secure? [closed]

First of all, I don't have any code to display in my question here, because I'm still designing the application structure, as I only have the design developed. I'm building a phone application that ...
0
votes
2answers
30 views

Why is my socket.io emit not causing a refresh of content

I have been adapting the IBM angularjs tutorial here into a Yeoman angular-fullstack tutorial and it has been relatively easy except I have one Issue. When I vote on a Poll the data does not refresh ...
2
votes
0answers
30 views

Disable Angular routing, just for first request (when sending pre-rendered html)?

I'm trying to make my angular app/website as SEO-friendly as possible. It's based on the angular-fullstack generator (Yeoman) and I'd like the initial request to serve completely pre-rendered HTML ...
0
votes
1answer
37 views

Angular and Sails routing configuration

Is there any Sails.js (or Node) configuration which can prevent Angular routing from working? No matter what approach I take, every rout apart from ones in sails' routes.js return 404. I've tried ...
0
votes
0answers
45 views

How to call cloudinary module from my controller

I am biulding a MEAN-STACK application (this is new for me) and started from this template: https://github.com/linnovate/mean I want to add a module (called cloudinary) so I followed this: ...
0
votes
1answer
23 views

Handling nginx errors in node/express

I have nginx set to limit file upload size to 2MB and have express set to permit this same size: nginx: server { client_max_body_size 2M; } express: app.use(express.limit('2mb')); In my ...
-1
votes
0answers
31 views

Error installing Node.js NPM on windows 7

Please please forgive me for asking this naive question.. this is my first ever attempt to do somthing angularJS form a website mention below http://docs.angularjs.org/tutorial i was following the ...
0
votes
1answer
46 views

MEAN Stack File uploads

I've recently started programming with the MEAN Stack, and I'm currently implementing some sort of social network. Been using the MEAN.io framework to do so. My main problem right now is getting the ...
0
votes
3answers
56 views

E2E Testing Angular with Karma - ng-scenario 'Module is not defined'

I've been trying to run some e2e tests with Karma. It's not working for me at all. Right now I'm getting the following error: Firefox 28.0.0 (Windows 7) ERROR ReferenceError: module is not ...
0
votes
1answer
52 views

CouchBase sync_gateway + web application?

By using couchbase sync_gateway for mobile sync(android,ios) you can still use the database from custom server side app? My application needs to run on both mobile and web. I have angularjs for ...
0
votes
1answer
48 views

AngularJS - Three dependent selects - only the first two populate

I am working with Express, Angular, and Jade. The relevant piece of the application allows the user to select an organization, board, and list from their Trello account. The three items form a ...
0
votes
1answer
41 views

res.json(item) responds with [object Object]?

I have a MEAN stack, where I loop over the items in the db with ng-repeat, and {{ items.value }} populates text on some divs. The divs each have ng-click="getItem(item._id)" to trigger an angular page ...
0
votes
0answers
31 views

Included JS and CSS files loading HTML document rather than proper files

I am working on an inventory management system primarily with node and angular. I've set up my gruntfile to compile and minify my JS, Sass, and Jade, and output it to my dist file. I've included a ...
0
votes
1answer
61 views

$injector:modulerr Failed to instantiate module cloudinary due to $injecto <omitted>

I am biulding a MEAN application. I started from this template: https://github.com/linnovate/mean I want to add a module (called cloudinary) so I followed this: ...
1
vote
0answers
15 views

using nodegit within angularjs app

I am building an app in AngularJS that needs to clone GitHub wikis attached to GitHub repos. The GitHub API does not have functionality to do anything with the GitHub wikis and GitHub support ...
0
votes
2answers
28 views

Angular - $routeParams.itemID for loading domain.com/:itemID ALMOST WORKING?

I am looking to have parameters in the route, by using a colon before the variable name // dynamic pages for each ITEM, once selected // from $routeParams.itemID in ItemCtrl .when('/:itemID', { ...
0
votes
1answer
19 views

Number TypeError with Mongoose Model?

There's a 500 internal server error, for Error: TypeError: path must be a string The browser console points to ItemCtrl.js:35 console.log('Error: ' + data); The stack trace for the error looks ...
0
votes
0answers
27 views

Switching to Yeoman and Bower

I've been developing an AngularJS app for the past 2 months without using Node, Yeoman or Bower. Now I've installed Nodejs, Yeoman and was wondering is it possible to convert my application to be ...
1
vote
0answers
90 views

Errors running yeoman AngularJS generator

Any help greatly appreciated! While trying the following steps from http://yeoman.io/ I got lots of errors on running yo angular that instructed me to post this issue on github. The steps I was ...
0
votes
0answers
30 views

Angular - TypeError: path must be a string for $scope.formData?

I have a form that has a number field: input type="number" class="form-control" placeholder="0" ng-model="formData.position" And when I submit the form, the .error function responds with the 500 ...
0
votes
2answers
26 views

How can I save additional fields upon user signup when using MEAN stack and Passport?

I'm trying to save more than just email and password when a user signs up on my site. All the Passport examples show only email and password being stored. What if I also have "gender", and "name" ...
0
votes
2answers
39 views

Object doesn't know its a restangular object

I started working with Restangular and Node today, and I encountered a problem when trying to add a new user to a list of users in my angular view. view.html <input type="text" ...
0
votes
0answers
29 views

Increment field on all records in Mongo?

The error is actually being thrown in the angular ItemController, Error: TypeError: path must be a string $scope.createProduct = function() { // validate the formData (using our exentions.js ...
0
votes
0answers
15 views

Update a value for existing documents with Mongoose?

I have a document field for 'position', which is used for sorting results via an angular loop on the frontend. Right now, my schema is accurately auto-incrementing new documents that lack a ...
0
votes
1answer
28 views

Use angular $parser on the server side in Node

I'd like to use the $parser module of Angular inside an open source library I'm maintaining. The library is a templating engine for .docx . I would like to benefit from the filtering functionality, ...
0
votes
1answer
37 views

How to use Angular JS with Leaflet.js

I am working on a dashboard using Node.JS/Leaflet.js. I started learning Angular js a few weeks ago. But I am at a medium step in my project. I am building an interactive map dashboard using: ...
0
votes
1answer
29 views

How to structure Angularjs/Leaflet/Node.js Application

I am working on Web app that analyze public transportation in real-time. I build an interactive map dashboard. I use : - Node.Js: for backend processing. - Angularjs & Leaflet: to work on the ...
0
votes
0answers
30 views

Angular button to dynamically add form-fields for keywords to be added to mongoose array?

Instead of using jquery, what is the angular way to have a button that dynamically adds the following form field to a form.. <input type="text" class="form-control input-lg text-center" ...
0
votes
1answer
49 views

Javascript 'If' to see if a form field has a number in it?

I have some javascript in a Mongoose Schema to auto-increment a value if there's no number entered manually in the form field. // before validation starts, the number of Items is counted..afterwards, ...