Tagged Questions
0
votes
1answer
11 views
Express Routes Generating 404 Response
I'm using MEAN stack as an extension of my learning node and express. What I'm attempting to do is simply link from one static page to another within the app.
My routes are defined as:
//Home route
...
0
votes
1answer
18 views
How to include socket.io with angularjs and Express.js?
Using socket.io with nodejs and angular
myApp.factory('socket', function ($rootScope) {
var socket = io.connect('http://localhost');
'io' not defined error
In express i'm writing:-
var io = ...
0
votes
1answer
16 views
angular js is not rendering in jade (with node.js)
I facing a problem that my Angularjs is not rendering or load in my Jade layout. Somehow the stylus is working perfectly with. I counldn't find out the reason why. I'm still the beginner in learing ...
1
vote
1answer
30 views
angularjs anchor in iterator (anchorscroll, ng-repeat,loop)
for example,
<div ng-repeat="item in items">
<p>item.title</p>
...
...
...
<p>item.up</p>
</div>
As i know ,anchor scroll need to specify an ...
0
votes
0answers
10 views
How to test Angular in case of php+mongo backend
Short: How can I read already compiled models structure from the mongoDB?
Full description: I want to write acceptance(e2e) tests for the frontend based on Angular JS. I'm choosed protracor to test ...
0
votes
1answer
36 views
Refresh(F5) ngview with angularJS
I've got an issue with my Angular application. The application is running well the first time, it is possible to navigate inside, but it fails when I try to refresh the page with F5. When F5 key is ...
0
votes
1answer
26 views
404 error trying to load MEAN web app
So I'm trying to set up a basic Todo list/CRUD application using the MEAN stack (Angular, MongoDB, Nodejs, Express) and I keep running into trouble when I switch around the routes and models in the ...
0
votes
1answer
29 views
module not defined in karma
I want to run mySpec.js with karma in webstrom7.
When i run karma, karma server starts on my browser but in webstrom I am facing this error as I'm new to angular, please help.
This is the error I'm ...
0
votes
1answer
17 views
Return collections from Mongo using a MEAN stack
I'm currently working on a group project. We're using the MEAN stack to create a simple web application but are running into some issues with returning data from the mongo database.
We're trying to ...
-1
votes
0answers
23 views
Best practice to implement data exchange between NodeJS based REST API and a rich client like AngularJS
I am working on a project which involves a server side (Node and Express) and client (browser and mobile) implemented by AngularJS. the client need to view list of items and be able to create/delete ...
0
votes
0answers
20 views
Manually setting session ID in Express
I have an Angular/Express app and am trying to implement some kind of restful auth. The Express app has Passport standard username/pass login and Redis sessions. On successful login I return the ...
0
votes
0answers
23 views
Protractor running tests on PhantomJS
I can't seem to get PhantomJS through a test successfully. I tried to integrate it into my project, but after that failed I tried to just run the basic Angular Docs samples and I'm getting the same ...
0
votes
1answer
29 views
How to fix error when trying to run node web-server.js
I've installed node.js through Win8 powershell and now want to run the web-server.js that comes with the AngularJS tutorial.. however, this time around Windows8 Powershell is behaving differently from ...
1
vote
2answers
53 views
How to create a dynamic front end based on Node JS, MongoDB, Sails JS
Basically I'm writing an app and am using Sails, MongoDB and Node JS for the back end. I'll use Sail's API features and was wondering what would be the best way to make the app realtime.
For ...
0
votes
1answer
49 views
angular-seed web-script.js and cors
I'm stacked for second day... I'm trying to fetch some json from outside domain, but I broke with CORS. I'm almost sure how to use JSONP in AngularJS resource, that problem is with my node.js server ...
0
votes
1answer
52 views
Yeoman - generator-angular error at init app deployment
I have installed npm, Yeoman and got everything working, the webapp generator works like a charm. I want to get into angular development and therefore tested the generator-angular.
I did everything ...
1
vote
1answer
52 views
In angularjs 1.0.8 not works PUT rest service
I have angularjs application which have CRUD Rest service. Create, Read and Delete methods works well, but PUT not works.
I found on Stackoverflow and there are the same problems with accepted answers ...
0
votes
0answers
33 views
Can't get angular and socket.io to run in tests using either Jasmine or Karma
I'm having difficulty getting my test to run, and can't figure out why.
I have a server and client, client is running Angular.js with socket.io, server is running socket.io.
From what I understand, ...
0
votes
1answer
54 views
nodejs expressjs angularjs routing
i want to redirect from an express function to an angularjs partial to load with the controller of that view.
app.js -->nodejs
function(req, res, next) {
console.log(req.session);
...
1
vote
1answer
37 views
Paypal express checkout for nodejs application
I have a simple web app using nodejs which has some products. I have setup my own cart using angularjs, and I want the simplest way to implement paypal payment. I have been breaking my head for the ...
1
vote
1answer
49 views
Index file being returned for all requests
I'm relatively new to web development. I'm using node (with express) and angular JS. While the solution may be simple, I can't determine why the contents of every requested file (css/javascript/html) ...
0
votes
2answers
34 views
Is there a way to load in a file on nodejs without packaging it?
I wish to have the contents of an entire file evaluated in node - in this case, the angular.js source file.
the code should look something like this:
jsdom = require("jsdom").jsdom;
document = ...
0
votes
0answers
87 views
Which Javascript framework to learn in 2014? [closed]
There is a similar question made in 2011 (Which JavaScript framework (jQuery vs Dojo vs ... )?). I went over and over to check for a more UPDATED answer but could not find one.
Just learned ...
0
votes
0answers
46 views
The best deployment architecture for angularjs nodejs app
I have Moto Adverts application in angularjs and nodejs.
Angularjs-client-side is running on Apache HTTP Server (localhost:8000) but nodejs-server-side is runnning as node.js http server ...
0
votes
0answers
22 views
Trouble Setting Up Skeleton Angular Application
I keep getting this error while trying to set up this skeleton application. I have no idea how to fix it sadly. Any input would be much appreciated. I'm just trying to get the darn thing up.
...
1
vote
3answers
57 views
How to unserialize JSON data in Express/Node.js
So I have on the client side within a controller:
$scope.authenticate = function() {
var creds = JSON.stringify({email: this.email, password: this.password});
...
0
votes
0answers
27 views
Plugin system using mean stack
I'm planning on using MEAN stack for a kinda big application.
I'd like that application to be based on plugins. Ideally, each plugin should be able to :
Define node routes, controllers, models ...
...
0
votes
0answers
72 views
Angular JS, node.js and sails.js infinite loop
I have made my frist angular + node.js app, works fine so far local, after I uploading this to server, I can't use the application:
http://sails.webdepot.info:1337/#/home
You can see multiple ...
0
votes
1answer
115 views
Passport AngularJS ExpressJS: Origin null is not allowed by Access-Control-Allow-Origin
When I'm trying to use $http module of angular.js for authorizing twitter app I always get:
XMLHttpRequest cannot load https://api.twitter.com/oauth/authenticate?oauth_token=something. Origin null is ...
0
votes
0answers
23 views
how can i fix it url characters is not supporting and facing error 404 on post request Angular js
i am new one with angular js so in url characters is not supporting how can i fix it and
facing error 404 on post request here i am attaching my code and error if any one can help must be ...
0
votes
0answers
29 views
Listen to google sheets cell change
Is there any way to listen to a change event on Google Spreadsheets cells?
I'm writing a web app using AngularJS and Node.js. My goal is to query the raw of the cell that changed.
0
votes
1answer
41 views
REST request not allowed
I'm currently developing an AngularJS client with a node REST service. I get this error when I try to use the REST service locally:
XMLHttpRequest cannot load http://tasks.dev:12345/articles. Origin ...
0
votes
1answer
47 views
Direct linking to route (e.g., /articles/:articleid) returns plain JSON, skips AngularJS and DOM
I have a multipage blog based on https://github.com/linnovate/mean.
Right now when I go directly to a /articles/:articleid type url, all that I see is plain JSON ({"title":"this is the ...
0
votes
3answers
84 views
Is it necessary to use JADE when building Angular Apps with Node and Express?
Is it possible to build angularJS apps with plain HTML, ExpressJS on NodeJS ?
0
votes
1answer
57 views
How to start programming something like mohiomap? [closed]
I'm thinking about creating a mindmap webapp for my own purpouses.
I would like to incorporate a layout like they do at https://www.moh.io/mohiomap/welcome.php.
Can anybody give me any hints on how ...
1
vote
1answer
49 views
Issue in angular js routeProvider
I have a problem in angular js routeProvider. If i am clicking register or login link then its not going to the next page just shows url like this. http://localhost:3000/#/register or ...
0
votes
0answers
28 views
Relying on 'disconnect' event in socket.io/express.io when using Angular's single-page app engine
How is it possible to add a 'disconnect' event whenever I leave a page that is intercepted by my single page application engine?
I have certain events set up (kind of like streaming events on ...
0
votes
1answer
131 views
CORS trouble with nodejs and AngularJS
For some reason whenever I try to post some data to my api server I get the following two errors.
OPTIONS http://localhost:3000/test2 Request header field Content-Type is not allowed by ...
0
votes
1answer
129 views
Angular.js and Express: Routing is not working
I've scoured the internet for somebody with a similar problem, but still no solutions. In comparing my app to Angular-Express-seed, Angular-Express-Master, and any of the other popular examples out ...
0
votes
0answers
36 views
Substituting JavaScript values based on Grunt task; best approach?
All,
I do not have any specific code to share as I believe the Grunt configuration of tasks is fairly straightforward.
What I would like to ask is for recommendations on replacing JavaScript ...
1
vote
1answer
52 views
how to force angular to send request to server on htm5 mode
I m tring to build and web using angular and nodejs. i m loading angular on /home path where / contains login and registration form
here is my angular configuration:
...
1
vote
1answer
22 views
How to go to a url which is parent to a url where angular config is defined
let me tell about my app: I m trying to build a webpage using node and angular. on / (root) url i m providing form for sign up and login. i didnt use angular here. after successfully logged in i m ...
0
votes
0answers
104 views
blueimp jquery file upload in AngularJS with Node.js server
I´m trying to integrate a Blueimp Jquery File Upload plugin in my application. My application has an AngularJS front-end running in a Node.js server and a Rails API backend running in a WEBrick ...
0
votes
0answers
33 views
Grunt-connect-proxy redirect?
I've got an application with AngularJS in front-end and Java Spring 3 in backend.
So when i run grunt-server i use grunt-connect-proxy to contact the backend part form the frontend part.
So my ...
0
votes
1answer
45 views
Package *.html templates in Require.js Optimizer?
How should one package the HTML templates (aka 'partials') in an Angular.js app when it is concatenated + minified for distribution? Is there a good way of including them in that single file, or ...
0
votes
1answer
67 views
$routeProvider not working and make request to the server with node.js
I get Cannot GET /login when I pull localhost:5000/login in the url . So the $routeProvider is not working and loading the view. Instead it is making the request to the server so basically it is ...
0
votes
1answer
74 views
NodeJS HTTP request from AngularJS
I'm currently developing a web application using AngularJS on the fronted and NodeJS on the backend with express. I've had trouble requesting my backend API from the fronted however and hope you guys ...
0
votes
2answers
56 views
How do I work with Mongodb Queries in a node JS MEAN stack
I am using the linnovate MEAN boilerplate to build an application: https://github.com/linnovate/mean
With MongoDB I understand how to query a collection on the database and get the results via the ...
0
votes
1answer
49 views
can I use karma to test page interaction like drag & drop?
I'm evaluating end to end testing of a MEAN stack app. There's a few critical spots in the app where drag and drop (via a directive) is used. I can't find any information about using karma to test ...
0
votes
4answers
75 views
Can I or Should I use a Global variable in Angularjs to store a logged in user?
I'm new to angular and developing my first 'real' application. I'm trying to build a calendar/scheduling app ( source code can all be seen on github ) and I want to be able to change the content if ...