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
11 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
23 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
13 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
19 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
22 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
30 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
26 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 ...
0
votes
0answers
15 views

Bower - EPERM, unlink error

I'm encountering the below error stack trace, while I try to install "jQuery" using Bower. Can someone offer some help? C:\study\meanApp>bower install jquery --save bower not-cached ...
0
votes
0answers
8 views

Having Select filled with One Document while rest of Form filled with another Document - AngularJS and MongoDB

Apologies in advance from my lack of understanding of this. I come from a Relational Database background, so I am trying my best to wrap my head around using the MEAN stack. I have a List of Teams ...
1
vote
0answers
17 views

Error: Cannot find module 'entities/lib/decode_codepoint.js'

I am using cheerio module for web scraping . It require htmlparser2 module , after installing htmlparser2. it gives following error- Error: Cannot find module 'entities/lib/decode_codepoint.js'
-1
votes
1answer
32 views

Express 4, NodeJS, AngularJS routing

I am using Express 4 to host my AngularJS app on my backend, with Nginx as my frontend server. However html5 mode does not seem to work, as I will get a Cannot /GET error when I try to enter the page ...
0
votes
1answer
55 views

Angular.js or similar to display json?

My nodejs app reads a json file, updates it when things change (via automated sensors) and then sends it to the web app over socket.io for manual control which in turn can update the json file. I ...
0
votes
0answers
10 views

passport facebook authentication with angularjs routeprovider

I have an angularjs and node,expressjs application. where when I am trying to implement the facebook login (passport). But the problem here is when I tried - ...
1
vote
1answer
31 views

Express named placeholder routes on root

I'm currently building a MEAN app and I have routing setup as you'd expect (/login, /profile, /logout etc). I've come to the point now in my app where I'm building user profile pages and I'd like user ...
0
votes
2answers
43 views

How to inject angular services correctly

I created a service called notifier that use toastr to alert the user during the log in process if the user successfully logged in or not. here is my log in module: var login = ...
-6
votes
0answers
25 views

what is the best way to make AngularJs work in all browsers? [on hold]

what is the best way to make AngularJs work in all browsers?
0
votes
1answer
46 views

How to dynamically change view in angularjs using ui-router

I have a named view called myView in which I have two div elements that I want to show conditionally using ng-show based on whether the value of $scope.states['currentState'] is 'A' or 'B'. The value ...
0
votes
0answers
17 views

Rewriting a Node.js script for use with Laravel

I am using the angular-client-side-auth GitHub package on my AngularJS front-end in conjuction with a Laravel 4 backend RESTful API. The package includes an example server-side Auth implementation ...
0
votes
1answer
20 views

AngularJS at server-side with Node.js

Is AngularJS only a frontend framework or it can also be used in server-side programming using node.js? If it is possible to use AngularJS on server-side then what would be best strategy of AngularJS ...
1
vote
1answer
39 views

validation issue using angular js (red border display on firefox)?

I make a simple form from object ..now i validate that form .I am facing few issues while validation.please check this on firefox.. http://plnkr.co/edit/CFUR2mgVv4hzXPF7AR9y?p=preview My field ...
0
votes
1answer
25 views

Angular - routing why do I getting my controller 2 times called

I am using routing in angular app. while the page loads, I am getting the controller function triggers 2 times.. How to avoid that or is it have any useful meaning to call 2 times? any one help me ...
0
votes
1answer
26 views

Node.js “Cannot read property 'prototype' of undefined” erroe - Node.js, MongoDB and Angularjs book

Hey guys hopefully I wont get blasted for making a obvious mistake. I'm working through Brad Dayley's Node.js, MongoDB and Angularjs book and I'm stuck on one of his exercises (Listing 4.4). I have a ...
1
vote
1answer
29 views

yo: command not found when running yeoman angular generator

I've read every related question on SO and can't get yeoman to work. I'm trying to run the yeoman angular generator with yo angular but I continue to get the error: yo: command not found I'm sure it ...
0
votes
1answer
100 views

How to properly set the server login code?

I'm trying to set up a login page using passport-local this way, but it wouldn't work: node server side: // mongoose var User = mongoose.model('User', userSchema); User.find({}).exec(function(err, ...
1
vote
1answer
42 views

How do I unit test $scope.broadcast, $scope.$on using Jasmine

I'm newbie to AngularJs/NodeJs world, so forgive if this is a basic question to some. So in a nutshell I've two controllers, the first controller $broadcast an 'Id' and the second controller fetches ...
1
vote
2answers
35 views

why element is not added in dynamically in angular [closed]

I am trying to add data dynamically using ng-repeat. I don't know why it is not adding. I enter "name" which is added dynamically in the data, but it is not showing in the UI. Here is a demo ...
0
votes
1answer
17 views

How do I configure IntelliJ for a full-stack JavaScript web app?

I'm building a web application using a MEAN stack: MongoDB, Express, Angular, and Node.js, based on Daftmonk's angular-fullstack Yeoman generator. My preferred IDE is IntelliJ IDEA, partly because I ...
0
votes
2answers
62 views

Grails as single app or different back-end and front end app [closed]

We are new to grails and are concerned about the following issues: scalability concerns Using same back-end for different applications So sticking to a single grails is good idea or we should ...
0
votes
1answer
20 views

Mean stack client side update

I'm having trouble implementing the client side update CRUD logic. The fields are currently being deleted with the set up as it is. What am I missing? My angular: $scope.editService = function(id) { ...
0
votes
1answer
16 views

passportjs custom callback 200

I am using angularjs and jade templating for my client side. And node and express on the server side. I recently added passport authentication and have the local strategy working fine when the login ...
0
votes
0answers
14 views

MEAN stack update [closed]

I'm stuck on the update part of the CRUD. Any help is greatly appreciated. Everything seems to be functioning correctly on the server side. I can't figure out the logic for the client side. My ...
0
votes
1answer
20 views

Cannot get http-server to run with nodejs command line from angular-seed github project

I am attempting to get a better understanding of nodejs so that I can get an IntelliJ plugin working. I have installed NodeJS on my Windows 7 machine and verified that it works from the command line ...
0
votes
1answer
53 views

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:8080' is therefore not allowed access

I have seen this issue multiple times been posted on forum, but working out with those solutions hasn't helped. I am building MEAN stack app using PassportJS to allow login with Twitter. ...
0
votes
1answer
23 views

nginx config - forward http to https, forward www.domain.tld to domain.tld and two subdomains

I'm trying to configure nginx to: http://www.domain.tld --> https://domain.tld http://domain.tld --> https://domain.tld http://api.domain.tld --> https://api.domain.tld The 'www'-webroot ...
0
votes
1answer
51 views

Angular.js only loading half the times

I am having an issue with an angular application. I am using bower. When I startup the server, I sometimes get this error: Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp ...
0
votes
1answer
22 views

Socket.io Won't Emit messages to rooms on discconect

Basically I'm trying to create a quick chat room using Node.JS and angular. I've Used other socket events and they worked I don't quite get why they don't want to work now. The really weird thing is ...
0
votes
1answer
21 views

implementing site wide progress indicators

I have a website running on the MEAN Stack (mongo, express, angular, node) and I am using jade as the templating engine for serving partial files. Now, I already tried ngProgres but according to the ...
0
votes
2answers
20 views

Structuring a MEAN app so Express can find all the Jade files

I am building out a MEAN app right now that is getting big. I really need to start modularizing the app but right now my Express server is configured to look for Jade views in one folder ...
-1
votes
0answers
30 views

Get request data from form inside different modules using mean.io

I am very new to mean.io. I installed the mean.io and got the sample application installed as well, which contains the data about articles. I now added the comments module in the same and want to add ...
-1
votes
2answers
33 views

Paginate blog with AngularJS Mongoose Express

I would like to paginate my blog with AngularJS / Bootstrap client side and Mongoose / Express server side. Actually I make a call to my rest API which return every blogposts i've got in my DB: ...
0
votes
0answers
17 views

The resource from this url is not text css

I am working in MEAN STACK Application. I have used less and Install $ npm install less-middleware In APP.JS var lessMiddleware = require('less-middleware'); app.use(express.static( ...
0
votes
1answer
37 views

using node passport.js for multiple websites

I am writing a node.js server to act as a REST server proxy for another server. Basically, it is going to allow multiple websites to authenticate, and provide a REST api for them to use. I am going ...
0
votes
1answer
31 views

Getting Information From Mongo And Displaying It With AngularJS

Hello I am trying to learn the mean stack and seem to be stuck. I created a node.js, express angular and mongo project. I have installed mongo with npm install mongodb How do I pass data from mongo ...
1
vote
1answer
25 views

how to create star icon in each row angular?

I am trying to make star icon in each row.I am generating the row dynamically but I am able to generate rows but my star icon is visible on upper of top row why ..I need to show start icon in each row ...
0
votes
1answer
43 views

Angular.js web app through Sails.js server

I am developing a web application using Sailsjs for the backend and Angular.js for the front end. To scaffold the Angular app I have used yeoman with the angular generator and for the back end I used ...
0
votes
1answer
37 views

Ajax request from another domain using AngularJs

I'm using this book to learn AngularJS where I build this webapp with Angular, Node, Deployd. Now, my app stays at localhost:5000/app.html, 5000 is the port where node web server listen. I try to ...
0
votes
1answer
22 views

Grunt compress : How could I only include runtime node module dependencies?

My application is MEAN stack style. I would like to generate a package including all Nodejs and AngularJs files, so I could just unzip the package and run in other environments. I use ...
0
votes
0answers
30 views

AngularJs deep linking to a specific ng-view

I followed a tutorial on angularJS with subviews using ng-views I'm using html5Mode in my locationProvider and a nodejs backend If I wanted to link to or hit refresh while on a specific ng-view, I ...
0
votes
0answers
29 views

Unable to run angular full stack application demo

I am trying to run the demo code hosted at https://github.com/DaftMonk/mean-chat. I downloaded the repository. Then I ran npm install and bower install. When I run grunt serve I now get this error ...