0
votes
1answer
21 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
21 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
19 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
87 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, ...
0
votes
0answers
14 views

Trying to unit test scope.$on using Jasmine

So in a nutshell I've two controllers, the first controller $broadcast an 'Id' and the second controller fetches that Id with $on and then passes that Id to an intermediate service, which makes an ...
0
votes
1answer
29 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
33 views

why element is not added in dynamically in angular [on hold]

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
13 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
57 views

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

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 [on hold]

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
17 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
46 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
19 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
48 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
21 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
16 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
27 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
29 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
15 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
29 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
23 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
24 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
36 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
35 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
20 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
29 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
26 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 ...
0
votes
0answers
32 views

How to implement this website login/user profile/social network connection strategy? [on hold]

I am building a website. I am planning to use these server and client side technologies: Node.js server, Passport.js user authentication, AngularJS client side framework. I was originally planning to ...
0
votes
1answer
14 views

Phonecat tutorial app (too much dependencies?)

So I'm learning AngularJS via the official website. There is a tutorial where the final app is a catalog of Android devices. Ok, so I've cloned the repo and the final size is 14 MB. That's nice. Then ...
1
vote
1answer
24 views

Shared http library

I'm working on a project that uses Node.js and AngularJS. AngularJS has the $http service. This service is great for making web service calls to rest-based services. I'm curious, does anyone know of a ...
0
votes
0answers
15 views

CSRF token issues with Express

I am trying to get CSRF protection working using csurf and express. My app uses Angular for the front end, so I figured adding this to my app would be enough: app.use(cookieParser('test secret')); ...
0
votes
1answer
24 views

Angular Service to Express API Route + Posting Data

I am in the process of converting one of my sites (http://maskedarmory.com) from LAMP (using Laravel 4 MVC) over to the MEAN stack and it has been quite a journey thus far. I have managed to get the ...
0
votes
1answer
45 views

Unable to update an object inside MongoDB collection using HTTP Put?

I am new to AngularJS and I was trying to update my MongoDB Database. I am having an issue when I am trying to update an object inside my collection. The following is my attempt at trying to do so: ...
1
vote
1answer
20 views

“heroku run fileName” after grunt build

To learn more about heroku scheduling I read this post and built the app described in it. The key part of this post was when I was able to heroku run numCheck and the code within the numCheck file ...
-2
votes
2answers
33 views

Can I make my local webapp visible to a friend by an ip? [closed]

I'm learning AngularJs and so I'm wondering: can I to look my work to a friend, giving him an ip? Probably AngularJs doesn't count, I'm using a simple "web server" via NodeJs. Sorry for my English. ...
0
votes
2answers
53 views

how to store and retrieve data in anguar js?

can you please tell me how to store data permantly (example local storage)and retrieve data .I want to store data so that I get again .I am doing client side programing ? I google it it say there is ...
1
vote
1answer
39 views

How to get service instance from module instance [Angular]

i have some module defined and services too with that module like below var services=angular.module('app.services', []); services.factory('ApiService', function($http,$cookies,UserService){ ...
0
votes
2answers
19 views

Setting Up Node.js App Directory

I'm completely new to using Node.js and even utilizing the command line, so this question may be extremely elementary, but I am unable to find a solution. I am trying to set up an app directory using ...
0
votes
2answers
29 views

Running jQuery code in MEAN.JS stack

I'm starting to work with NodeJS, and more expecifically with MEAN.JS. I'm trying to run some custom JS code, using JQuery, but no matter where i put the code, it nevers runs as expected. This is my ...
-3
votes
2answers
32 views

Why use a templating engine for an angular app?

I'm just curious if there is any reason to be using a templating engine for a node/express/angular app. I'm new to node and express, so I might be missing something big. But I generally handle ...
0
votes
1answer
19 views

How does requiring modules manually differ from calling them dynamically with browserify?

Sorry for the awkward post title but it's a very weird situation to be in. In my project I have a folder structure like so: /filters index.js [...] /controllers index.js [...] ...
0
votes
1answer
14 views

MEAN Stack socket.io pushing to client when existing data gets updated

I am working on a MEAN & Socket.io project where Mongodb in the back-end holds my data and I am using socket.io to publish newly arrived data to all the clients. To make it real time, I am using ...
0
votes
2answers
59 views

What is the best practice for multiple $http request in AngularJS?

For example, I have a controller to show user a list view, some columns need data comes from another endpoint, so I wrote these with intuition, could you tell me how do I re-factory them? ...
5
votes
1answer
88 views

Sharing code between AngularJS and Nodejs

What is the best way of sharing code between frontend and backend using javascript, specifically saying between nodejs and angularjs? Thing is that we are using same enums and constant values such as ...
0
votes
1answer
51 views

Installing a Web Server for Node.js

I'm trying to follow a book I purchased called "Pro Angular JS", and I am having trouble getting a web server pointed to the right port. So I go to the command line, run Node, and the first error I ...
0
votes
0answers
19 views

output sanitation when displaying content from node server in angularJS

There are so many suggested ways to do sanitation with this stack (angularJS with a nodeJS backend) that I'm not sure what to My angularJS web app makes calls to a nodeJS server in order to get info ...
0
votes
0answers
24 views

Effects of using $routeProvider for routing

I am using AngularJS 1.2.21. As long as I am using NodeJS with Express for routing for serving ejs pages, everything works fine, but if once I start using $routeProvider for routing using ng-view, ...