Tagged Questions
0
votes
1answer
24 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
0answers
14 views
AngularJS requests stuck in pending
I have a very strange issue (or at least it looks strange to me) with AngularJS. On a simple controller I issue 2 independent requests to my NodeJS backend. Very often, one of the requests would end ...
0
votes
1answer
23 views
Direct linking to AngularJS route (e.g., /articles/:articleid) returns naked JSON
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
28 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
51 views
How to start programming something like mohiomap? [on hold]
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
27 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
8 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
37 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
46 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
34 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
29 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
20 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
22 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
7 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
20 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
32 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
44 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
45 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
25 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
62 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 ...
0
votes
1answer
20 views
Pluralization in mongoose/angular
I have an issue with pluralization in Mongoose that Im sure is easy to fix but I cant figure it out myself.
So, I have a Model called "Eventinstance" and a controller called "eventinstances". Either ...
0
votes
1answer
50 views
Node.js Rendering big amount of JSON data from the server
I have an view that has a for loop that inserts rows to a table. The table is very big and already consisting of couple of thousand of rows.
When I run it, the server throws out of memory exception.
...
0
votes
1answer
23 views
Dynamic post/put routing in ExpressJS
I'm using Angular on the client side, Express on the server. I've got two forms on the same page. I need both forms to post to the same URL, but use a different controller method, depending on a ...
0
votes
1answer
16 views
AngularJS Protractor and Socket.IO
When setting up an E2E test with my existing angular app, I am having trouble getting starting since I am using socket.io in my application. Protractor can't find the socket.io files that are ...
0
votes
1answer
40 views
AngularJS socket.IO Bootstrap Modals only once
I have a problem with bootstrap modal window when using AngularJS together with NodeJS and socket.io. I have been googling and it seems like it is issue that has a solution, but for some reason it ...
0
votes
0answers
68 views
Using database in AngularJS - where should I write DB connection code?
I'm now building up a web app using Node.js, AngularJS and either MySQL or MongoDB. However, when I tried to use AngularJS with a controller which includes datasets fetched from database, I wonder ...
0
votes
2answers
52 views
Sails.js application not refreshing files from assets after start
I have a Sails.JS application with Angular.JS front-end.
The angular files are stored in /assets/linker and they are injected properly on start. My issue is that when I change css or js file from ...
0
votes
1answer
32 views
NodeJS return JSONP NOT using express
Im trying to call my nodejs server and show the results from an angularjs app. ive been following an example, but when i change the example code for my code, it always calls the error callback. i have ...
1
vote
1answer
48 views
Components of Web Application - Express.js, Angular.js and MVC confusion?
I've come across a lot of posts on Stack Overflow about Express.js being used with Angular.js and how there are two MVC components to both the client and back-end sides of the web application, but ...
0
votes
0answers
79 views
Warning: Task “karma” not found when running grunt test
http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower
After following this interesting guide about Angular, Yeoman, Bower and Grunt I was able tot bootstrap an ...
0
votes
1answer
31 views
Angularjs: Node server that supports html5mode?
I'm locally developing an Angularjs app. I'm using the same node web server as in the Angularjs tutorial. The link to the code for the web-server on Github.
The problem is that I can't seem to get ...
0
votes
1answer
108 views
AngularJS/Jade Error: Argument 'MyController' is not a function, got undefined (MEAN)
I know variations of this question have already been asked several times, but I've tried several suggested solutions for other OPs, haven't been able to resolve this, and would appreciate some ...
-1
votes
2answers
70 views
How can I quickly get up to speed with Node.js and other javascript frameworks? [closed]
I've seen job listings lately which require strong skills in javascript and Node frameworks that I've never even heard of until today.
What is the best way to get up to speed with these, as evidently ...
0
votes
1answer
51 views
Yeoman application - using custom nodejs server
I am starting a development of node.js & anular application using Yeoman tool for all its awesomeness (or so they say) but I am wondering about one thing.
After my application is generated there ...
2
votes
2answers
61 views
Making Ajax call Angular to Node.js (express.js)
I am trying simple thing. Make ajax call to node express and do something based on it. I am not being able to access req.body, I mean it is empty when debuggin from node.js side
NODE SIDE.
I am ...
0
votes
1answer
33 views
Confusion about template retrieval in single page apps and the difference with typical file retrievals
I have a conceptual uncertainty about the way AngularJS deals with single page routing, and whether that's at all similar to the way typical css/javascripts files are retrieved from the server.
...
0
votes
0answers
30 views
Case-insensitive queries with Amazon Dynamo DB
In In DynamoDB, string values are case sensitive. In my app, users can search the db for a profile name. However, if they searched for, say 'alan', then 'Alan' would not be returned in the search ...
0
votes
1answer
48 views
Hidden/Disabled fields disappear from req.body (Express JS bodyParser)
I have not been able to find the answer to this question. When using NodeJS, Express, and the Express Bodyparser - and the rest of my MEAN stack for that matter - I run into an issue with both hidden ...
0
votes
1answer
22 views
change url on res.redirect in expressjs
app.get('/logout', function (req, res){
req.url='/';
console.log('req.url is ' + req.url);
req.session.state = null;
res.redirect('/login');
});
upon redirect, the 'url' remains ...
0
votes
1answer
93 views
How to make Angularjs route work with expressJs route on html5mode
i have posted a question on stackoverflow (css and javascript didn't include on refresh) yesterday asking the question about why the css and javascript didn't include on my webpage after I refresh ...
0
votes
1answer
25 views
Configuring Twitter everyauth `consumerKey` for node angular express bootstrap web app
I'm using https://github.com/ganarajpr/express-angular and get this error when I try running the app:
git clone https://github.com/ganarajpr/express-angular.git && cd express-angular/ ...
0
votes
1answer
37 views
inline editing with angular, inherited scopes - submit a form to the server
I am doing a form with inline editing.
I found an example here:
http://stackoverflow.com/a/16739227/169252
which I adapted to my needs.
Here's some of the code
(using nodejs, express and jade).
The ...
0
votes
1answer
32 views
AngularJS $resource 'GET' accesses the correct API, but 'PUT' and 'POST' do not
Follow up from AngularJS $resource calls the wrong API URL when using method:POST
My controller is set up like this, with Angular's $resource:
$scope.updateProduct = ...
0
votes
1answer
51 views
append files to FormData not work in angularjs
I use angularjs to upload files and json object to nodejs server in single request. Then I get this console.log on firebug:
-----------------------------8791641017658 Content-Disposition: form-data; ...
0
votes
1answer
43 views
Using $http.post and res.redirect without resolving the promise
I am using an $http.post call to my server and sending over some user data:
$http.post('/streamdb/create/',{user:$scope.user.username})
My server then performs a series of operations and retrieves ...
0
votes
2answers
51 views
Express js routes not working as expected with MEAN stack
I'm fairly new to express/mongoose and cannot work out why my routes are not working. I'm using the MEAN stack.
I have a general offer route '/offers' and then specific offer routes ...
0
votes
1answer
63 views
Saving a value into an array of objects in Express/Angular/Node
I'm still getting the hang of Express/Angular and how they work together to post to the server. I'm using the MEAN stack in my sample application.
The Schema for the object I'm trying to post looks ...
0
votes
1answer
80 views
css and javascript didn't include on refresh
I'm a beginner on AngularJs and I have encountered a problem that I don't understand why and I hope you guys can help or enlighten me. I'm trying to build a single page application with angularJS + ...
3
votes
1answer
51 views
Angular css files not loading when controlling two Partials with a single Controller
I'm working on a web-application built upon the MEAN stack.
I use bootstrap as css lib, and have some css override in two files of mine "app.css" and "mio.css"
the app works just fine until I hit ...
2
votes
2answers
140 views
AngularJS $resource calls the wrong API URL when using method:POST
Not the easiest issue to put into a title.
Anyhow, my app is built on nodejs/expressjsand has an API set up for the url:
EDIT: The current code I'm using is:
$scope.updateProduct = ...