Tagged Questions
-2
votes
2answers
22 views
Can I make my local webapp visible to a friend by an ip?
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
0answers
31 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
30 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
0answers
21 views
Node JS URL issue
I am developing WEB app with an Angular and Node js, I will start my app by hitting localhost in the web page am having one href link after clicking that link the url is changing to localhost/#/active ...
0
votes
2answers
14 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
24 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
30 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
14 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
9 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
50 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
80 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
47 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
16 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
18 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, ...
-1
votes
0answers
18 views
Submitting form using node js and express with angular js as frontend framework
Hi I would like to know how to submit the form data which I wrote in html and css in my loginpage.html and I gave the action to that form ...I used post method to submit the form
The following is my ...
0
votes
1answer
31 views
How to make a Node JS server to work only with a SPA Javascript Client provided by me?
I have a Node JS server and a SPA Application build with JavaScript, CSS and HTML (Angular JS).
It will be really easy to learn how everything is done on the client, because all the scripts are sent ...
0
votes
1answer
21 views
Firebase Countdown Timer Synched Across Multiple Clients
I am going to take a crack at building a penny auction site for a specific niche using angular JS. I am trying to plan the countdown timers and i've been itching for a reason to try out firebase.
I ...
0
votes
0answers
23 views
Error: .get() requires callback functions but got a [object Undefined] - on writing a ToDo application
Hi,
I am writing a TODO application using the MEAN stack.
I am using the polling app from http://www.ibm.com/developerworks/library/wa-nodejs-polling-app/ as my base.
I am attempting to implement ...
0
votes
1answer
26 views
angular not defined, cannot get angular side of app running
I cannot get the angular side of my app up and running I am getting these 3 errors in the browser console:
Uncaught TypeError: Cannot read property '$$minErr' of undefined angular-resource.js:8
...
0
votes
0answers
16 views
Selenium and node-replay
Hi I am having trouble connecting node-replay to selenium (where I am running my protractor tests for my angularjs app).
My tests run with grunt:
grunt protractor
And they work fine.
But now I ...
-2
votes
0answers
34 views
Can someone bring me up to speed on Node.JS and Angular.JS? [on hold]
Sorry if this belongs on programmer.stackexchange -I wasn't quite sure.
I am a junior .NET developer for a bank and am interested in picking up a new language (mainly to do simple freelance dev work ...
0
votes
0answers
40 views
Use $http request and set $scope in the success function, why the firefox can't show the correct results
I did some modifications on kibana-authentication-proxy,
dashLoader controller:
module.controller('dashLoader', function($scope, $http, timer, dashboard, alertSrv, $location) {
$scope.loader = ...
-1
votes
0answers
12 views
How to deploy an angular webapp with a node server
Somewhat of a dumb question but, i've a small node backend that i launch through 'node myserver.js'.
Now i also have a small frontend built with angular composed of html, js and css file.
How would i ...
0
votes
1answer
27 views
Referencing NodeJS MongoDB connection from AngularJS
I'm trying to set up a small development environment consisting of a node.js http server, a mongodb database and frontend in angular.js. For development purposes I've created an account with MongoHQ ...
0
votes
0answers
14 views
Hooking up protractor E2E tests with node-replay
I've been messing around with node-replay (https://github.com/assaf/node-replay) to see if there is a way I can hook it up with my protractor tests to get my tests to run with recorded data (so they ...
0
votes
1answer
58 views
Angular: how to pass $scope variables into the Node.js server.
right now I have this form:
<form ng-submit = "submit()"ng-controller = "formCtrl">
<input ng-model="formData.stickie" type="text" id="sticky_content" />
...
0
votes
2answers
37 views
What is the conceptual difference between AngularJS and view template engines in NodeJS?
I'm having hard time to make the difference between view template engines, such as EJS and AngularJS. I do understand concept behind view template engines, but I was thinking that Angular is pretty ...
0
votes
0answers
31 views
Nodejs + angularjs + mysql : How to render query data to angularjs using route/view
I'm using a mysql select query in my route and I'm trying to render the data in the view.
I have some trouble retrieving the data and display it with angular ng-repeat. I think it's something to do ...
0
votes
1answer
17 views
Payload from post request not available in node.js function
I've just started to fiddle with three new (to me) frameworks/products: MongoDB, NodeJS and AngularJS.
What I'm trying to accomplish is to have a simple form submit a value and have that value ...
-1
votes
0answers
32 views
How to combine AngularJS + Node.js + socket.io + MySQL?
I'd like a very simple example, (just source code if you want) to do the following (I have an idea but I'd like to read yours, you're too smart guys), it doesn't have to be exact:
I have a webpage, ...
0
votes
0answers
28 views
User management with Node.JS
I'm having some trouble with Node.JS. I don't understand how to delete a user from MongoDB. Actually, I use rest API to send a DELETE request with userId as parameter, however, it delete the current ...
0
votes
1answer
28 views
'node filename.js' command Where is it storing my data?
I am trying to connect my AngularJS app to the heroku database. I am following this guide here ...
0
votes
0answers
17 views
AngularJS: Dynamically Configure the Base Path of an App
I am attempting to serve a Node.JS/Express/AngularJS app with NGINX, from both a subdomain (myapp1.somedomain.com) and a subdirectory of another domain (www.somedomain.com/myapp1)
Serving from ...
0
votes
1answer
24 views
Angular UI Client Side Pagination
I would like to enable pagination and I'm torn between client side and server side pagination. In the long term (more data) it is probably better to do server side pagination, but I haven't found a ...
0
votes
0answers
16 views
ACL for Multi Tenant SAAS App Built With the MEAN Stack Node, Express, Mongo
I'm building an SAAS application with MEAN Stack (node.js, express.js, mongo db and angular) and I'm starting with a REST API that the angular frontend will consume.
I have most of it figured out and ...
0
votes
0answers
25 views
Make a popup form in AngularJs and Nodejs
I'm newbie in Angular and Node, so I don't know a lot of it.
I have an Angular single page and I want to create a popup form that appears when I click a button, and then send the information via rest ...
0
votes
1answer
30 views
Integrate socket.io into angularjs project
I am trying to add socket.io to my angularjs project. My reference is http://www.html5rocks.com/en/tutorials/frameworks/angular-websockets/?redirect_from_locale=zh#disqus_thread. I am trying to modify ...
0
votes
1answer
35 views
Node.js, PostgreSQL error: no pg_hba.conf entry for host
I am following this article ((http://nodeexamples.com/2012/09/21/connecting-to-a-postgresql-database-from-node-js-using-the-pg-module/). I have already deployed my app to heroku and currently using ...
-9
votes
0answers
39 views
php, python, node.js, angular.js… what do i need? [on hold]
i want to start learning some "backend-programming" to do some simple stuff like write something in a data base and read something out of it. i need an login and a type of voting-thing.
now i looked ...
0
votes
2answers
31 views
Get ng-model values on POST to Express.js endpoint
I am creating a Node.js application with AngularJS.
I want to make a simple POST, using Angular. This POST should post a couple of values to my server, where I can see them using console.log.
In my ...
0
votes
2answers
32 views
browserify 'Error: Cannot find module' in trying to fix 'Uncaught reference error: require is not defined'
I am having a very similar, or almost exact, issue to @RachelD from this thread (Node.js + Angular = Uncaught ReferenceError: require is not defined) regarding the Uncaught reference error. However, ...
0
votes
1answer
16 views
How to serve the default angular seed/tutorial app on the root route?
I'm using the angular tutorial as base to build an app . However when I run npm start I need to go to localhost:8000/app/ to get the app. I would like to change the route so that I can run serve the ...
-1
votes
0answers
13 views
node framework mysql authentication
Hi I'm about to write a website using AngularJS as the front-end. It has nice links through to firebase but that stores de-normalised data I believe.
Does anyone no of a node based framework I can ...
2
votes
2answers
50 views
Difference between x.controller and .controller
I have a main app.js file which has the defined code as below:
var app = angular.module('Funapp', [
'Funapp.controllers',
'Funapp.services',
])
I'm wondering why for some of my js ...
0
votes
2answers
70 views
POST request 404 (Not Found) with angular.js and ExpressJS
I'm trying to send a request to my ExpressJS server using AngularJS:
angular.module('app').controller('contactCtrl', function($scope, $http) {
$scope.envoyer = function(nom, organisation, ...
-4
votes
1answer
23 views
err: TypeError: Cannot call method 'replace' of undefined [duplicate]
I'm trying to send form via a POST request this way:
client side
angular.module('app').controller('contactCtrl', function($scope, $http) {
$scope.envoyer = function(nom, organisation, courriel, ...
0
votes
1answer
43 views
Node.js: req.params vs req.body
I've been cobbling together code from a few different tutorials to build a basic todo app with the MEAN stack, using node, express, angular, and mongodb. One tutorial covered creating an api for GET, ...
0
votes
1answer
23 views
Injector.modulerr error using angular.js
I've got a problem with node-jade-angular app:
layout.jade
doctype html
html(ng-app='listApp')
head
title= title
...
0
votes
0answers
19 views
How to redirect to an angular view from server-side routing?
I would like to do something like this:
res.render('profile.ejs',{data:data});
but using angular. In other words, I have a view home#/profile,
with data-binding to $scope.data.
Now, I need to ...
0
votes
0answers
24 views
Heroku Postgres Connecting in Node.js
I want to use a heroku database (already deployed in heroku) for my AngularJS application created using Yeoman. I want to persist my data that is currently an array of JSON objects that goes away when ...