0
votes
0answers
5 views

How to query a nested tree comment sturcture using mongodb

I am trying to create a comment system that is very similar to reddits. I am using the MEAN stack, also mongoose. I am struggling to find the best way to query all the children recursively. In the ...
0
votes
2answers
16 views

How can i send an html and variables together in nodejs?

I need to send an html and some variables. I think i can't use locals or res.render since it's not a view, each client can have different pages. The pages are stored in MongoDB (the html with the ...
1
vote
1answer
6 views

Error in generating ultimate-seed with yeoman

I'm attempting to create my first Yeoman webapp using the ultimate-seed-generator. However I get the following errors: C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect>npm install > ...
0
votes
0answers
16 views

How e-commerce sites retrieve images ? [on hold]

I have a website where AngularJS and NodeJS is used. I want to retrieve around 100 of images with its properties such as price, size etc. The number will grow over a period of time. How does all ...
0
votes
2answers
19 views

Using Express Handlebars and Angular JS

Background I am currently building a website that uses NodeJS for the server, Express Handlebars(Just Handlebars but server side) , and hopefully AngularJS for some client side stuff. The Problem ...
0
votes
0answers
35 views

Why are all my scripts transferring as MIME type text/html?

I work on a large node.js/Angular.js application. We use grunt to recompile public scripts and markup. Most of the time, I have no problems running the server locally. Every time I make changes, I run ...
-2
votes
0answers
32 views

I have a website using php want to use real time [on hold]

I have a website using php/codeigniter want to use nodejs or any other techniques for some real time data what is the best technique that make me not to repeat functions ? i use now jquery/ajax but ...
0
votes
0answers
18 views

Explain to Mean.io beginner how Mean.io sample package's authentication works

I'm learning mean.io from this tutorial video, which shows the example package (created by mean package mymodule. It is also described under "Packages" on the docs). I would like help in understanding ...
0
votes
0answers
42 views

MEAN Stack Callback Confusion

I'm pretty new to the MEAN stack and I've come across some confusing stuff regarding async tasks and callbacks. I'm using the meanjs.org boilerplate, and I'm sure this is a pretty simple question, but ...
0
votes
1answer
16 views

Message “Failed to instantiate module growlNotifications…” appear on production env

I am current using mean.io as development framework of my application and have been using growlNotifications plug-in for certain time and it works perfect on both server and client side. while after ...
0
votes
1answer
17 views

MongooseJS Not saving to array properly

I want to append a value into my Mongoose array but my array never seems to update. I do the following: In my controller, I append an eventName into the array eventsAttending like so: ...
0
votes
0answers
15 views

node restify oauth2 CORS — 'No 'Access-Control-Allow-Origin' header is present on the requested resource

In my learning application, I'm using https://github.com/domenic/restify-oauth2 library to implement OAuth2. Here is code snippet in server.js file. I've modified /token endpoint to ...
1
vote
1answer
29 views

multiple ui-view html files in ui-router

Is it possible to make something using 2 or more html files using ui-view? I need it to be something like this : I've tryed to do something working on plinker, but looks like I clearly don't ...
1
vote
1answer
18 views

ui-router doesn't work from nodejs folder but works on plunker

ui-router is supposed to make an index.html as a header and test.html as a attached view but it doesn't work on my computer for some reason. Plunker one work great. index.html is same as on plunker ...
0
votes
1answer
27 views

HTTP Put error when updating array: No matching document found. has no method 'send'

I seem to be having issues performing HTTP Put requests inside an array in AngularJS and ExpressJS. The issue is, when I call the HTTP Put the first time, everything works correctly. However, when I ...
0
votes
1answer
24 views

Can't load js into MongoDB

Trying to get this project to run locally. NPM is installed. Mongo is running, but can't load the seed files. Using mac OSX, my terminal output is: curtiss-mbp:CustomerManager curtiss$ mongo ...
0
votes
1answer
25 views

How to render a view in Express by passing at the same time json object

I have a problem and I'm looking for a solution to figure out it. In ExpressJS 4 I'm using Jade as template engine and AngularJS as client side framework. I get through mongoose module a list of car ...
0
votes
2answers
21 views

How to concatenate angularjs files using grunt

I have an angularjs app. I want to concatenate all the angularjs files to single file. I am using grunt and searched about concatenating grunt plugins. I found there are grunt-contrib-concat and ...
0
votes
2answers
77 views

MeanJS - integrate Angular in index.html file

I'm coming from a LAMP background, and as a learning project I downloaded MEAN.JS so I can dive into the MEAN stack. I got the whole thing running, but I feel like I'm missing something... I followed ...
0
votes
0answers
21 views

Whats the easiest way to run node along with generator-angular?

I have spent several hours doing this and I'm completely losing my mind. I have angularJS on front-end, and Node+Express on the backend. Right now, I have a default project of generator-angular and ...
0
votes
1answer
41 views

AngularJS - How to get serverside and clientside routing to work together

Im working on porting a project over to an angular based SPA. Its currently a more "traditional" node/locomotivejs app that serves up templates from the server side (never known the proper term for ...
0
votes
0answers
10 views

Karma is erroring with ReferenceError: Can't find variable: module on the karma config file itself

I've got the angular and angular-mocks files in the karma config file, but it is erroring before I even get there.. All of the documentation online on this reference error says I don't have ...
0
votes
1answer
9 views

Trigger $digest when variable changed by node.js function

I want to make an application with node-webkit using AngularJS. No problem so far but when I want Angular to watch over a "legacy variable" by using the method described in this answer I just get an ...
0
votes
1answer
17 views

Expressjs routes with Angular routes problems loading direct urls

I have angular working with expressjs and everything for the most part is working, however I am running into conflicts with routes in express and angular app.js app.get('/',routes.index); ...
1
vote
1answer
15 views

Downloading .csv from Express backend to Angularjs

I have seen this same question here, however the solution is not working in my case and inputting the code snipped that was used $('<form action="'+ url +'" method="'+ ('post') ...
0
votes
0answers
11 views

angular-phonecat tutorial: protractor.js unexpected behavior under Chrome Canary

I’m setting things up in order to run the angular-phonecat tutorial using Chrome Canary under OS X as a testing browser. I got everything working, except when I input npm run protractor the e2e test ...
0
votes
1answer
21 views

Mongoose Error: `{“message”:“No matching document found.”,“name”:“VersionError”}`

I've been trying to figure out why my HTTP Put has not been working after I use it once. When I click a button, I push the current user's id into an array like so: $scope.currentUser = { ...
0
votes
1answer
12 views

How to prepare grunt to prepare dist folder with app.js?

I'm currently playing around with Yeoman Angular Fullstack Generator. That's pretty cool and works as expected. Since it uses grunt, it's possible to run grunt serve dist so that it starts the server ...
1
vote
1answer
29 views

Using firebase authentication for a nodejs application

I don't know if this will work out, or is it the right thing to do. I have created an angularjs application and used firebase to provide my application a "backend", or to contain any data that my ...
0
votes
2answers
40 views

Displaying data with AngularJS loaded by NodeJS

I'm building my first MEAN twitter like application and currently try to display a list of posts to the gui. what I currently do is: The angular.js part: in my main.js: angular.module('MyApp') ...
0
votes
4answers
34 views

How to send hidden field values with angularjs using ng-value

Here is my form: <form ng-submit = "submit()"> <input ng-model="formData.data" type="text" name="sticky_content" placeholder="protein" required="true"/> ...
0
votes
1answer
28 views

REST API design for a large mongo document

I'm having a large document (stored in a Mongo db) and i should expose this document as a REST API. By large I mean more then 200 fields with nested documents and nested list of documents. My ...
0
votes
1answer
9 views

Node with Hoganjs variables into Angular ngView [closed]

I'm using Node.js with Hogan.js mustache templating and it's working well. I am using Angular.js for the front end but I am having problems parsing variables between the two. I know that uses ...
1
vote
1answer
20 views

How to access (node.js) server logs and show in front end in angularjs

I am using angular framework to build a small app and i am trying to bring the server logs to the front end (show in html page). please let me know the best way to do this. Thanks.
-1
votes
0answers
19 views

Trouble with asset pipeline with a deployed Angular app

I am running a production server for my Angular app on Google Compute Engine. The problem is that grunt serve stops by itself after some time. So I am using forever web.js to start the app server. ...
-3
votes
2answers
40 views

What is difference and similarities between Angular.js/D3.js/Node.js [closed]

I am trying to explore javascript frameworks and I came across these popular frameworks Angular.js Node.js D3.js I tried to google it, but found very few comparisons. So can anyone explain actual ...
0
votes
1answer
24 views

Angular project working tools

I am working in an AngularJs project in one computer with Windows 7. What I would like is to be able to continue working at home and in any other computer. If I have installed inside a folder called ...
0
votes
0answers
18 views

MEAN with Socket.io - socket events get pushed 4 times

I'm doing a small app using MEAN (MongoDB, Express, AngularJS, Node.js). For data transport between server and client I'm using socket.io. On connection, I want to emit a list of users from the server ...
-1
votes
0answers
39 views

Simple Login Page authentication using nodejs mongodb and angular js [closed]

I am new to node.js and mongodb, i want to create a login page, in which username and password will be checked from mongodb. If login is success then route to home.html else redirect back to login ...
5
votes
2answers
75 views

I keep getting TypeError: undefined is not a function

I keep getting the above error when running the following code in a MEAN stack app: $scope.completelesson = function(lessonindex, type) { //a variable that will be appended to 'level' in ...
2
votes
1answer
33 views

Protractor E2E - How Do You Manage Database?

I'm currently leaning on the Node + Angular stack and utilising Karma and Protractor for testing. I'm currently having a hard time figuring out how to handle E2E tests that create and edit data, as ...
1
vote
1answer
38 views

Flow.js ( in Angular.js) uploads to node.js failing if greater than 5MB

So i've got my defaults of 1Mb chunks to upload, and 5 simultaneous chunks at once, but after those chunks have completed my client side doesn't send the remaining chunks. Hence the max out at 5Mb, ...
0
votes
1answer
12 views

Jade: Unexpected Identifier error on Ubuntu Machine - works on Mac

The problem I have is that this works fine on my Mac machine but when migrating it to Ubuntu I get this error. Here is my index.jade partial .container-fluid .row .jumbotron center ...
0
votes
0answers
22 views

upload image angularjs mongodb

I'm a beginner in angularjs. I try to upload an image with angularjs, initially i uploaded an image with node.js and FS module, now I have to translate everything in angularjs. I tried to use FS in ...
0
votes
0answers
26 views

Trying to show a image from Angularjs controller

We've decided to use Mean.io in order to get a quick MEAN stack installation, but we're finding some troubles to get things done. I'm trying to show a picture from my header js controller. But it ...
0
votes
0answers
21 views

How can I populate friends of current user in meanjs?

I want to display friends of Authenticated user in angularjs page. // Find a list of Friends $scope.find = function() { $scope.friends = Authentication.user.friends; ...
0
votes
1answer
21 views

performing Authentication in a RESTful app

I was looking at ways to perform authentication in application which primarily work out of RESTFUL APIs. I am specifically referring to MEAN stack apps. Here the backend (Node + express) and front-end ...
2
votes
0answers
27 views

Render Jade like an Angular partial

I study the MEAN conceptions by this video course by Joe Eames. This course interesting because teach how to use JADE templates as partials instead of HTML. \bin \node_modules \public \app ...
0
votes
3answers
31 views

How do I pass node.js server variables into my angular/html view?

I have this route in my app.js file that starts the server app.get('/view/:item_id', function(req,res){ var A = 5; res.render('view_item'); and I have this in my view_item.html: ...
0
votes
2answers
27 views

How to load same page on refresh in angularjs?

i have an application written in nodejs and angularjs . In index page bottom of there is an hyperlink text.when i click on that hyper link page is loading but when i refresh same page it give 404 ...