1
vote
1answer
57 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
33 views

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

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
32 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
45 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
21 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
42 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
28 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
0answers
40 views

Application security [closed]

I am making an application using angular and phonegap, my server is nodeJs through https and my database is mongoDB. I'm trying to build the structure of the application as secure as possible. ...
0
votes
1answer
33 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
43 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
30 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
41 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
48 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
49 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 ...
-5
votes
0answers
23 views

Light weight or lean MEAN framework [closed]

I try to use MEAN.IO. But it seems little bit heavy or over burdoned. Can some one guide me to lightweight or lean framework for MEAN.
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
40 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
57 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
27 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
26 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
78 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
25 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
37 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
28 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
13 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
35 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
29 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, ...
0
votes
1answer
30 views

AngularJS string is not a function

To shorten up the post this is all the info needed for my problem, so i made a button that gives +1 rating and a button for -1 rating when clicked and this is its HTML code, <p> ...
0
votes
1answer
26 views

Angular - 404 when directly visiting localhost:8080/somePage, but OK on href link?

Only after adding CRUD to my angular controller and service do I get a 404 error when I visit localhost:8080/somePage directly.. Cannot GET /somePage The href links in my navbar that point to ...
0
votes
1answer
34 views

redirect to another app with session token (jwt) in AngularJS and NodeJS

I have a startup module in angularjs. This module is just to login and have public information (login, prices, newsletter...). I have many roles and for each role, i have an app (angular module). I ...
0
votes
0answers
26 views

Angular - Node Express - Large image upload issue

I'm working on handling file uploads using express.js ,node, and angular. The basic functionality working for small size images. While i try to upload larger images, i got 404 error . I use ...
0
votes
1answer
33 views

Angularjs application hosting on J2EE servers instead of Node.js server

First of all, I'm very new to AngularJS please let me know if this is a valid scenario. For studying purposes, I'm developing test applications on Node.js server which I downloaded from ...
9
votes
1answer
73 views

Permanent session storage in Node

I have a node server running right now, I use npm forever to keep it running when I'm not developing and I use npm nodemon for when I edit (restarts app on edit/upload). I noticed that whenever I ...
-1
votes
1answer
45 views

Migration from Java backend with simple Javascript frontend to MEAN stack [closed]

I created a client-server web app using Java backend (JBoss RESTEasy, Jackson, MongoDB) and Javascript frontend (just jQuery and some plugins). Now as I learning Javascript I want to create the same ...
0
votes
0answers
57 views

Unable to install npm package: can't find package.json

The error: npm ERR! install Couldn't read dependencies npm ERR! package.json ENOENT,open 'C:\Users\Yashizho\Desktop\server\package.json' npm ERR! package.json This is most likelt not a problem with ...
0
votes
1answer
26 views

jquery-1.10.2.min.map requested many times, slowing the server to a crawl

Out of the blue (seemingly) I get a strange behaviour from my angularjs app. When a new route is loaded the server is flooded with requests for "jquery-1.10.2.min.map". It doesn't show up in the ...
1
vote
1answer
30 views

Karma: Continuous Integration mode shuts down browser

I'm using karma for my angularjs test. When I run npm test my tests are executed, but then, the browser shuts down. I've tested it with Chrome, PhantomJS, Safari and Firefox. Here is my karma.conf.js. ...