Tagged Questions
0
votes
0answers
8 views
Post SQL data to Angular View with NodeJS
I'm having a difficult time posting data retrieved from a server using mysql with node. I have connected to my db successfully, and I can return the data I want by console logging it to the CLI when ...
0
votes
2answers
22 views
Slow Angularjs page initialization - long delay before html loading
I'm running an angularjs app, and can't figure out why my page is loading slowly. The css and js files all load quickly, but there is a long delay between that and when the html loads, where the app ...
0
votes
0answers
16 views
How to get and store in array all “_id” of a collection [duplicate]
I have a collection in mongodb like this:
{
"_id" : ObjectId("58a31698dd9e6521cc6b4ea5"),
"a" : "value_a",
"b" : "value_b",
"c" : "value_c",
"__v" : 0
}
{
...
0
votes
0answers
17 views
MEAN Stack 2.0 Angular-cli | [$ng new client] folder
I've initialized npm init and I've the following files
routes
views
client ( Created by $ng new client )
package.json
server.js
Now I have two services running 127.0.0.1:3000 : $node server.js and ...
0
votes
0answers
20 views
Nodejs Expressjs, Pass data to all routes?
I was new in NodeJs by using ExpressJs framework. I have to create a login system and I want my html sidebar menu always show which user was login by looking from session and join to the database.
...
0
votes
0answers
18 views
Object doesn't save to Array of Objects in MongoDB using PUT
I'm trying to save an object in an array of objects. I'm using the MEAN stack where the user enters information, the controller calls the API to retrieve a shop ID, the controller makes another API ...
0
votes
1answer
20 views
Node Js get post data as json key
NodeJS File server.js
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var morgan = require('morgan');
var ...
0
votes
0answers
20 views
session disappears after page load from nodejs backend
I am developing an application with angularjs frontend and nodejs backend. I am distributing the code so that the angularjs would run inside an cordova android app. Before that I am trying to get the ...
0
votes
0answers
29 views
Angular2-fullcalendar doesnt work
I have try to create a demo from angular2-fullcalendar... but doesnt work... maybe you see my failure? i see in the browser in the console only this:
Object { __zone_symbol__error: Error, fileName: ...
2
votes
1answer
26 views
Mean stack website loads very slow on server
I have problem to find out why my mean stack website load very slow.
I have debug the problem and removed unnecessary css and javascript files but still it gets around 9-12 seconds in page load.
In ...
-7
votes
0answers
30 views
How can I find M.E.A.N stack projects? [on hold]
I learned mongo express angular js and node,i wanna improve myself,to do that i searched google to find some projects but i couldnt find something usefull.
YELP!
0
votes
1answer
17 views
how to set system proxy from angular js app
I am creating an app using node js and angular ui, where i need to ping a server.
To ping a server i have written the folloing code, which works perfectly :
app.get("/api/getPing", function (req, res)...
-1
votes
0answers
8 views
Role-Based Authorization in Loopback Framework [on hold]
How to implement authorization with three roles i.e. Admin,Manager,Customer in the Strongloop
4
votes
0answers
113 views
Updating angularJS view when data changed in mongdb
My project architecture is somewhat like this :
I have an Mobile Application, which i use to upload a form and a photo. This application is connected to a server( Server B ). Using this server, i ...
0
votes
0answers
10 views
Angular1 and Adsesne
I have an angular app. I am trying to log what pages are viewing the ads. I have my analytics and my Adsense accounts linked and I can see the data in the publisher view. I have embedded the analytics ...
2
votes
0answers
31 views
Angular JS and Express JS Routing Not Working Properly
I'm having problems getting my NodeJS app to work with both Express JS and Angular JS, in particular I'm struggling to get the routing to work between the two.
My goal is to have ExpressJS drive the ...
1
vote
1answer
37 views
Angular 2 - MEAN MongoDB NodeJS
I'm using this GitHub example (https://github.com/bradtraversy/mean_mytasklist) and it works fine so far. I see the tasks of my MongoDB, can add, delete tasks.
Then I was trying to add a new ...
-1
votes
0answers
23 views
best way to import scripts in index.js in angular 1.6 with es6 and node.js
We are using angular 1.5 with es6 gulp and babel and node.js while
importing scripts angular.js and angular-route.js in index.js. We are
importing it from the node_modules folder. Can somebody ...
1
vote
0answers
32 views
Where do I keep the application logic in an offline-first web app?
I'm trying to build an offline first web application using couchdb and pouchdb as the backend/frontend databases, AngularJS as the frontend framework and expressjs/nodejs as the backend server. The ...
-2
votes
0answers
30 views
I am not able to post data in my nodeJS application, which gives Cannot POST /login error
I am new to nodeJS. I am not able to post data in my node application. I am following a tutorial about mean app and coding alongside the same, so far its been good. I have a login form and i am unable ...
1
vote
2answers
18 views
$https delete is not working in nodejs and mongodb ,not able to delete
id i m getting in the controller but its nt coming in the server,when i am clicking on delete i am getting the id in console. its showing error "possibly unhandled rejection" and error 404
this is my ...
0
votes
1answer
19 views
Trying to search JSON and display matching results to the screen using grunt and angularJS
I am trying to search through JSON that I load into a variable using angularJS with grunt. I had my app set up with Yeoman. I have done this type of search before without a server, but now that I am ...
1
vote
1answer
25 views
Focus on an input after creating it with AngularJS
I've been doing a todo list with AngularJS and want to know if there's a way to focus on a input box after creating it by clicking on a button.
Actually, my save function inside the controller is ...
0
votes
0answers
13 views
How to add organization's Maven repo to package.json?
I am developing my first AngularJS project (and first JavaScript project). We have an existing Java API JAR in our organization's Maven Artifactory. I'm unable to figure out how to add this as a ...
0
votes
0answers
16 views
Angular2-Nodejs-Uncaught ReferenceError: System is not defined
Getting Uncaught ReferenceError: System is not defined error because of 404 - unable to load resources script files mention in index.html file given below. These resources are located in client/src ...
0
votes
3answers
28 views
ExpressJS IP and AngularJS $http get
I'm trying to learn ExpressJS and I'm having trouble getting IP address from an Express route to display in the browser via Angular controller.
I'm using 2 Nodejs modules (request-ip and geoip2) to ...
-1
votes
0answers
14 views
AngularJS and Node.js
Is it possible to dynamically include a node.js page in hosted in domain1 to an angularjs page in hosted in domain2. what are the advantages and disadvantages of this approach. Basically, I am trying ...
0
votes
1answer
22 views
Integrating Stripe to MeanJs boilerplate
I am new to Mean stack and is using the ver 0.4.2 of MeanJS(meanjs.org). I am stuck at integrating Stripe to the platform. I am using Stripe Angular for the integration.
So, far I have created a new ...
0
votes
0answers
12 views
Define callback with multipartForm
im following this tutorial to upload images to server, it is already working, but i can't get the callback from the request.
He is implementing the multipartform like this:
app.service('...
0
votes
0answers
18 views
input data text can't save into database when input type file didn't insert mongodb multer expressjs
so,I want to try upload data to mongodb when a photo 'value' is empty, (only data text input). so this's the part of my code
app.put("/user/:id",upload.any(),function(req,res){
if(req.files)
{...
1
vote
0answers
23 views
nodejs mysql and angularjs in electron
I'm using electron and angularjs 1.
how get data from mysql and pass them to view?
I tried this but doesn't work :(.
The problem is that how to send results to this.products which is used in view.
...
1
vote
0answers
16 views
how do i plot data from MongoDB on OSM?
The data stored in my Database "video" of "shows" collection in mongodb is as this. It has 3 feilds as dose_rate, x, y.
My code for "app.js" is as follows :
var express=require('express');
var ...
1
vote
1answer
21 views
multer file without extension
at the moment i have this:
var multipart = require('connect-multiparty');
var multipartMiddleware = multipart();
router.post('/registo',upload.single('file'), function (req, res) {
but the file ...
0
votes
1answer
32 views
retrieve uploaded images from the server
I already got it to upload some images to the server, i am actualy saving the image to my user like this:
foto: { name: String, img: String, contentType: String },
so when i perform a get request, ...
0
votes
1answer
19 views
Setting same height for all cards in Horizontal layout
I have a horizontal layout in which I have 3 md-cards. Each card has different content in it. The problem is, based on the amount of content in each card, the card's height changes.
What I am trying ...
1
vote
3answers
32 views
how to send extra data in request?
I want to send itemId in http request. how to do it and what will I see on server req?
here is request:
var fd = new FormData();
var itemId = scope.vm.item._id;
fd.append('file', scope.files[0]);
$...
0
votes
1answer
28 views
node.js deployment on Heroku
I tried deploying a node.js test app to heroku and from what I can gather from the heroku log file it is working fine
2017-02-09T12:25:56.034718+00:00 heroku[web.1]: Starting process with command ...
0
votes
1answer
35 views
Angular Http Module considered middleware?
I am attempting to fully understand what middleware is and I've come to bit of a hardspot.
I'm reading through the expressJs docs and its definition of a middleware function which is - "Middleware ...
1
vote
0answers
8 views
flow.js save image to server error
Well hello guys,
I lost soo many hours trying to do this, and im kinda losing my hope, basicly i want to use the ng-flow module to pass it to my server and save it on a folder using Node.js.
Soo ...
1
vote
2answers
33 views
Sending File from Angular to Node Express
I would like to send a file to my Node.js application, but it seems that the application receives nothing. I'm not sure what to do. How am I supposed to check If I have sent the file, and if I am ...
0
votes
1answer
18 views
File upload with flow.js server get response 404
im using flow.js to upload files to the server, at the moment i am uploading just a single file and check on my upload route if i get the file i send.
So in the angular side i have somehing like this:...
0
votes
1answer
34 views
Node.js w/ Express not Picking Up Request from Angular App
I am trying to perform a GET request from my Angular app controller when the "Send" button is pressed, as follows:
var config = {
method: 'GET',
url: '/sendmail',
params: {
from: $scope....
0
votes
1answer
17 views
zipping(ZIP) giving issue corrupted in angular
I am generating zip file using following angular and other javascript library.
$http.post("http://serverURL/downloadAttendanceReport",data,config).success(function(response){
var blob = new Blob([...
0
votes
2answers
31 views
How to add a new line when adding something to a variable
I have this:
data.data.message = 'User created';
app.successMsg = data.data.message + '...Redirecting';
And I want to add a line before the ...Redirecting. I've tried \n, \r, both together but it's ...
0
votes
0answers
21 views
How can i access the token in the url when clicked through an email, inside my controller in angularjs?
Here is the url:http://localhost:2000/resetPwd/2b95b3ad23dca76b825b
I want to access "2b95b3ad23dca76b825b" to render a template on url load and then call my web service to reset password.
Here i ...
0
votes
1answer
6 views
angular-jsdoc with npm
Using angular-jsdoc I am using this command to generate my docs
node .\node_modules\jsdoc\jsdoc.js app -c .\node_modules\angular-jsdoc\common\conf.json -d docs -t .\node_modules\angular-jsdoc\...
0
votes
1answer
25 views
Cannot get a angular js file in node and angular aplication
I try to create a simple SPA application and in html file i have errors like: "failed to load resource: angular.js", "failed to load resource: angular-route.js", "failed to load resource: myApp.js" ...
0
votes
1answer
18 views
How to synchronize backend timer with mobile app
I am developing a app that chooses a user and has a 15 sec. timer for that user to respond. The user app queries the db every 5 sec to see if that user is chosen. If so The mobile app begins a 15 ...
0
votes
2answers
16 views
MEAN Stack application: Toggle boolean value
I am using mlab and mongojs along with Angular. When I attempt to toggle a boolean value (onStatus), the button in the view toggles from off to on, but it crashes the app. When I check in the DB the ...
0
votes
0answers
11 views
Image upload not get fire when i choose the file
im trying to make this work since last week, and still a big nope, basicly i want to upload a foto to my server and save it there, on the same route i save the source for the image on my mongoose ...