Tagged Questions
0
votes
1answer
10 views
XMLHttpRequest cannot load <instagram OEMBED URL>. No 'Access-Control-Allow-Origin' header is present on the requested resource
i am developing OEMBED app where i want to request some OEMBED api to get me JSON data. I am using node/ express in backend and angular in front end.
Here is my server code.
var express = ...
0
votes
0answers
9 views
Understanding socket service in yeoman's fullstack
I had a bit of trouble understanding the socket service that yeoman's fullstack provides. Especially the first lines of the function. What "to DI" means and how am I supposed to do it ?
Also, I ...
0
votes
1answer
23 views
Save two referenced documents simultaneously
I've got an stock application where I want to set some details about the stock and then insert all the items of the stock. I want to insert the stock details and the items in two different collection ...
1
vote
0answers
16 views
Transition between two single-page-app pages within the same angular application
How could I move from a page that uses an ng-app="MyAppFrontEnd" and its own set of CSS and JavaScript to a different page that uses ng-app="MyAppAdminEnd" and has its own set of CSS and JavaScript?
...
0
votes
0answers
15 views
Node & Angular: Best way to stream videos from server
This is a general question and doesn't involve any code at the moment. I am working on a project in Angular & Node. One of the views I've made has a list of videos on it created with ng-repeat. ...
0
votes
0answers
13 views
angular, node + Service that returns SQL Data as json
Total newbee here. Given this service.js how can I go about returning terms data from sql server
app.service('termsService', function () {
this.getTerms = function () {
return terms
...
0
votes
1answer
14 views
how to run npm/grunt command from jenkins
I'm new to this area and was trying to run the following commands from jenkins:
npm install
grunt quickStart
So far I've a jenkins running on a window machine as a window service and I've also ...
0
votes
0answers
28 views
Improving response time in AngularJS web app using mongolab, nodejs and express
I am developing an Angular Web App that receives its data from a nodejs/express API.
This API runs mongoose that connect to MongoLab (the free account).
When receiving data, I experience a response ...
-1
votes
0answers
15 views
Import contacts from Google and facebook using node.js or javascript
I have a website that include language angular.js,node.js and mongodb and some part of java script .i want to import Facebook and Google contact lists to my website by clicking on specific button.Is ...
1
vote
0answers
12 views
Firing Up Browser from Server to get the HTML of an SVG updated reflecting real time data Every Hour
Hi I am currently working with node-scheduler and node-mailer in combination. I have successfully implemented an email scheduler where the user can chose to send an email immediately, ever hour, or ...
-10
votes
0answers
64 views
TypeError: undefined is not a function in location.$path()
I am getting this error "Type error: undefined is not a function" when i navigate to other page.Below i have attached the snapshot of console log. why i am getting this and how to resolve this error?
...
0
votes
0answers
23 views
how to create a node js application that runs from cd [on hold]
I am creating educational nodejs application . i Want this application to run from cd..
I dont know what are the steps to make this app run from cd.
Please explain the step to make nodejs app run ...
2
votes
1answer
33 views
CORS in Node.js and AngularJS
I have a CORS problem with my app.
My stack is Node.js with Express 4 and AngularJS using Restangular
I already have tried a few things (for example) but I keep getting:
XMLHttpRequest cannot load ...
0
votes
1answer
39 views
Angular '/' route not working with Express
I'm trying to serve a home view using Express/Angular, such that when the root url ('/') is accessed, a view is loaded. Right now navigating to http://localhost:3000 displays an empty page with ...
0
votes
0answers
14 views
Angular: dynamic loading of Jade templates to div
I need to load partials of jade templates that i route by server side with code:
router.get('/partials/:name', function (req, res) {
var name = req.params.name;
res.render('./main_partials/' ...
1
vote
0answers
39 views
Angular.js: using forEach to create objects then $http POST
EDIT:
Node/Express Code inserting into sqlite database:
var db = new sqlite3.Database('db/gnarboxmm.db');
router.post('/api/jobs', function(req,res){
tsql = "INSERT INTO Jobs ('Job_File_Name', ...
0
votes
0answers
9 views
MEAN + Create two referenced documents
I'm new to the MEAN Stack and I'm trying to learn how it works building a stock application. In the project I first add a stock with some details (Date, user whom created the stock, etc) and then in ...
0
votes
1answer
28 views
MEAN: A file uploaded ignores completely the req.on() NodeJS method
I'm using MEAN.IO for developing a webapp.
At this momento, i'm trying to accomplish an uploader for images. For that, i'm using angular-file-upload and it seems to work pretty well.
My problem is ...
0
votes
0answers
17 views
Angular.js and Node.js: Seeing an OPTIONS and one POST Request in Firebug but two POST Requests in Node.js
To make a POST request with a Body full of JSON Data as Payload I use:
$http.post('http://westeros:9000/model/create/', theBody).success(function(retData, status, headers, config){....});
I am ...
1
vote
0answers
21 views
SPA (Angular) Authentication with API and Auth Server on Separate Domain for OAuth2 Providers; Google, Facebook
I have an angular app running on separate domain than my api/auth server. For a local example: my angular app is on localhost:9000, and my api/auth server is on localhost:3000. Or if this was public ...
2
votes
1answer
26 views
Download Csv file on front end after clicking on button using angularjs , nodejs ,expressjs
I want to download .csv file on frontend.
this is my code:
$http.get('/entity/consultations/_/registerationReport' )
.success(function (data) {
myWindow = ...
0
votes
1answer
6 views
Node, Express, SQLITE POST to DB
New to node and express. I'm working on building an API route that will take an $HTTP POST request from Angular and relay data to the database. Here is my Angular code, which works fine itself:
...
1
vote
0answers
22 views
How do I send a JSON object from server to my view using Node/Express and Angular
I'm trying to build a webapp and I'm stuck at this part: I want to use Contentful to serve my data. Since it's a RESTful service I thought it would be relatively easy to use. They also have a node ...
0
votes
0answers
37 views
Angular.js: Passing variables between functions in controller
I am new to Angular and am trying to pass variables between functions within my controller. I've taken a look at some responses to similar questions, and they all involve using services. I am open ...
1
vote
1answer
28 views
Grunt to concatenate angular ui router templates into one file
I have an angular-ui-router project with 150 files all over the place. I want to write a grunt task to combine all of them into a single index.html like this:
<script type="text/ng-template" ...
1
vote
1answer
23 views
AngularJS: Karma + Jasmine to test with _real_ backend
Going to run Karma+Jasmine to test angularjs client with real backend. Since Karma is using its own express but I need to access real nodejs backend with DB and other stuff, I'm thinking on adding ...
0
votes
2answers
21 views
How to create a Node.js API that can send progress indication data to the front view?
I'm working on a MEAN project as my hobby. I use Node.js as the back end and Angular.js as the front end. Node.js will execute a long lasting task (it takes about 30 minutes to execute this task), I ...
1
vote
1answer
27 views
Passing backend express session variable to Angular
Current code:
<div ng-controller="HeaderCtrl" class="header">
<div class="logo">intquest</div>
<div ng-if="signed_in" class="header-actions">
<a ...
1
vote
1answer
33 views
Yo angular error?
I installed Yeoman on my Mac (OS X 10.9) and I am trying to run yo angular.
I get the following error:
path.js:384
throw new TypeError('Arguments to path.join must be strings');
^
...
0
votes
0answers
22 views
Where can I find NodeJS web hosts to host my websites/ web apps/ apis/ etc…?
Hi, I've recently started developing NodeJS applications and need to find a web host that fully supports it and my requirements. I've had a hosting account w/ GoDaddy for years now (sorry) and am ...
0
votes
0answers
35 views
How to handle routing in MEAN application for multiple pages
I want to access my admin end using the URL http://localhost:3000/users/123 for which I have the following routing using Angular UI-Router module:
.state('users', {
url: '/users/:id',
views: ...
0
votes
0answers
18 views
How to create mutiple single-page-app like behavior in an app using AngularJS nodejs and expressjs
I am working on an application that has a front end and an admin end. The look of the admin end is different than the front end, that is the CSS and JavaScript files being used on front end and admin ...
0
votes
0answers
24 views
Node: npm install failure due to proxy config! What now?
I was trying to run node with the angular.js tutorial application and I found that npm isntall was not behaving itself.
I got a strange little spinning character that seemed to never stop.
I ran npm ...
0
votes
0answers
17 views
Create global configuration using Grunt JS
Ok, I have a couple of questions. First of all, I'd like to call grunt in different ways, for example:
grunt prod
And I'd like that when I call it like this, it creates my config file like ...
0
votes
1answer
27 views
node.js architectural advice on avoiding global state
I am working on a small hobby project, where I would really like some input and advice.
This is my first "real" node project, and I hope it will teach me a lot about node.js development. I am a .net ...
0
votes
0answers
25 views
angular socket.io destroy socket
I am working with a node socket.io server and an angular based socket.io client (using angular-socket.io), and it works well except in 1 specific condition: I cannot figure out how to totally destroy ...
0
votes
1answer
28 views
CORS requests with node.js/express and AngularJS
I would like to implement a very simple CORS scenario. Here's my server written in node.js/express:
var express = require('express');
var morgan = require('morgan');
var bodyParser ...
0
votes
1answer
20 views
Access connect-flash messages in angular.js
I'm adapting some code that presupposes a traditional non-SPA page load, and displays flash messages to the user generated by connect-flash middleware. It does this by passing in an object that is ...
1
vote
1answer
19 views
ngFlow to Forimidable node.js server
I am just wondering if anyone has implemented the ng-flow Angular.js module back to a formidable node.js server. I have got communication working and the files downloading but I am having issues with ...
-3
votes
0answers
28 views
Alternate technology to replace java Applets [closed]
Could you any one mention best technology alternate to Applets
We have big legacy product , with applets , Struts , ejb..
We need to replace this applet part , but which is best and why
I know ...
0
votes
0answers
18 views
How do I generate sitemap.xml for node.js prpject
There are posts on this topic but they do not help me to figure out the right way to auto generate sitemap.xml file.
My project is a SPA built with node.js and angularjs.
I need to create sitemap.xml ...
0
votes
1answer
36 views
How to Update Model in AngularJS when Ajax used Long Polling?
How to update the model when i used ajax long polling technique?
At first i will load the default list
Example:
- id1
- id2
- id3
Then in my background process, i setup a ajax long polling that ...
-1
votes
1answer
30 views
Using nodemailer to send emails regularly
Hi I was wondering if anyone could provide some guidance for how I could go about implementing some functionality to set up scheduling with emailing using nodemailer.
Like Ideally I could schedule an ...
-2
votes
0answers
27 views
angularjs post to express 4 returns bad request 400
This is about a problem in posting angularjs to express 4.0
I followed a course on pluralsight on MEAN stack. I got the source code from github of the course teacher ...
1
vote
1answer
27 views
$http.post returning error-undefined in console
I'm new to angular. I'm using a controller to grab data from a factory that I've populated with an $http.get that connects to a REST api:
videoModule.factory('myFactory', function($http){
var ...
1
vote
0answers
10 views
Yeoman built angular app not deploying bootstrap fonts to heroku
Upfront, I've already solved this bug. This is just reference for others who run into it.
I've deployed a Yeoman-built app to heroku using this guide:
...
1
vote
2answers
25 views
Node, Angular, Express and the view engine
I recently started using Angular, Node and Express. I have made some working browser-based applications in Angular and am attempting to port them to server applications in Node and Express. (In ...
-1
votes
0answers
29 views
Return results in mysql as sub array in JSON
Trying to get a list within a list and having trouble with the mysql end. I'm using nodejs and express with angularjs front end, and want to list people and each person list each role, but I'm not so ...
0
votes
1answer
20 views
Angular.js request/response Node.js
I am trying to request some data from node.js server from my angular.js. The problem is that upon data response i see a blank browser window with my json object printed on it. I want angular.js to ...
0
votes
0answers
21 views
Can't install AngularJS dependencies on Mac
I would like to go through the AngularJS tutorial on my Macbook (64bit, Intel Core i7, OSX 10.9.4).
I've installed Git and Node, and I've cloned the repository, but I can't install the project ...