Tagged Questions
0
votes
0answers
30 views
How to send data from node.js to angular.js controller
I'm using node.js and passport for authentication, and I need to send 'login failed' message to the client if a user failed to authenticate. My application uses also express middleware.
I'm using ...
0
votes
0answers
10 views
Integrated seed for server side - client side boilerplate
Am looking to work on my pet project using angular and nodejs.
There are good client side angular seeds and server side nodejs seeds on github.
Is there a seed which gives a comprehensive seed ...
0
votes
0answers
20 views
MongoDb Tailable Streaming Returns Duplicates
I have a few MongoDb Capped Collections and I'm attempting to stream new entries (from another process) out to my page over SocketIO like so:
Server side:
...
var TickerSchema = new ...
0
votes
1answer
30 views
$scope inside a callback of a resource get call will not work
i am having a problem accessing the $scope. as it seems it is not working for me.
i have a resource:
squashApp.factory('CourtsService', function($resource) {
return $resource('/api/court/:num', ...
0
votes
1answer
36 views
callback function causing problems with node.js server
in my node.js (express) server i have this app.get
app.get('/api/court/:num', function(req, res, next) {
var courts = new CourtsHandler;
if (req.params.num == 0) //get array of all courts
...
0
votes
0answers
11 views
Inconsistent results from karma e2e test runner. How can I debug?
I have a simple angular / requirejs / node project that loads correctly when viewed from a browser. I'm trying to get e2e tests with karma set up.
I've copied all of the e2e configurations and ...
0
votes
1answer
41 views
AngularJS POST request not returning a response when sessions are used
I am making a POST request in angular to an API that returns a JSON object. Everything was working perfectly until I added express.sessions to the mix. Now, the POST request still gives a 200 status, ...
0
votes
1answer
23 views
unable to serve json file with express.static
i have a few questions:
i am building an app with angular and node (Express).
1)
in my node server i am serving all static files in my static_dir
app.use(express.static(STATIC_DIR));
insdie this ...
0
votes
3answers
39 views
$routeProvider will not work as should be
i am having a problem and a question
my cliend side uses:
<div ng-view></div>
and the following scripts:
<script src="lib/angular/angular.js"></script>
<script ...
0
votes
1answer
27 views
How to deal with nested data in Angular.js select in a form?
I have a node.js app where the form has a selector. The app loads the data from mongodb via mongoose and populates a nested referenced object. So my data looks like:
{ "__v" : 0,
"_id" : ObjectId( ...
0
votes
0answers
12 views
Mod_proxy server flow for making HTTP requests via a hosted javascript app
Can anyone give a moderately detailed proxy server flow for making HTTP requests via a hosted javascript app, which is an angularjs/node app hosted on apache server port:3000 in my case. I'm calling ...
0
votes
2answers
29 views
regarding foodme project in github
hello i have a question regarding the foodme express example over github:
code:
var express = require('express');
var fs = require('fs');
var open = require('open');
var RestaurantRecord = ...
0
votes
1answer
18 views
Resizing and compressing AJAX images in Node/AngularJS application
I'm building an app in AngularJS, built on Node/ExpressJS. I have a list of images which are hosted externally (and I have no access to them to compress them at the source).
The issue is, that often ...
0
votes
1answer
25 views
making a data application that will store data on each day on the calander
i am having a bit of a problem, i am sure this question has been asked but i cant figure my way to google it or find it here.
i am building an web app with angular and node.
my task is that every ...
0
votes
0answers
16 views
AngularJS with ckeditor is producing an arcane error on load
Using the solution from this problem: Bind Ckeditor value to model text in angularjs and rails
I get the following error whenever I try to use the directive on my page.
Uncaught TypeError: Cannot ...