Tagged Questions
1
vote
1answer
17 views
How to perform a click event on a specific location on the canvas using protractor
I am stuck on this issue for a long time and I don't know how to go about it.
I am trying to autoomate a map application which has locations and places on it. When you click on the particular ...
0
votes
0answers
9 views
How to save images into project folder using Angular.js,Node.js and Multer
I need some help. I need to upload images into local folder using Angular.js ,Node.js and Multer. I am using ngFileUpload to upload the file. I am explaining my code below.
category.html:
<form ...
0
votes
1answer
17 views
How can i create a loopback remote method for search
In my loopback application i have a model named test. I need to search details and display the details based on multiple criteria. that is the search fields are status, priority, message and id. i ...
0
votes
0answers
20 views
MongoError: failed to connect to server [localhost:27017] on first connect?
I am new in UI field.
I have an issue connecting the database locally. Is there any error in my code?
I went through many threads but not resolved yet. Please help!
This is server.js :
var express = ...
0
votes
1answer
16 views
Socket.IO emitting for each client when only one client emits
I'm having this weird issue where when I emit a message to the server while there only is 1 client, everything works fine, as in only one message gets sent. But when more than one clients are ...
0
votes
1answer
19 views
How to run Angular 2 App locally without node
So I went through this tutorial making a movie finder app using Angular 2, however we always had to run through 'npm start' in command line.
How do I make it possible for someone to view my project ...
1
vote
1answer
16 views
Express prevent redirect in SPA
I have the following routes configuration:
const app = express();
app.use('/site', express.static(path.join(__dirname, '../../site/static')));
app.use('/site*', express.static(path.join(__dirname, ...
0
votes
0answers
29 views
Angular CLI karma tests not running
I have an Angular2 project, created with Angular Cli 1.0.0.rc2
When I run ng test, the project builds (without errors!), karma launches chrome and displays
"Karma v1.4.1 - connected" and
"Chrome ...
0
votes
1answer
17 views
Issue with mixed content using AngularJS, Parse-Server, and Heroku
I have a node server running parse-server that I have hosted on Heroku using the free tier. I built a web app using AngularJS that retrieves data from the server. After developing it locally I also ...
0
votes
1answer
16 views
Send result from HTTP request in Angular to NodeJS
I am currently sending a request from NodeJS to get some data, as such :
In Angular :
$http.post(API_ENDPOINT.url + '/annonce', {'link': url}).then(function (result) {
...
}
And in Node :
...
-1
votes
1answer
13 views
How to host web application on remote host
I am currently using nodejs + express js.
web application is hosted on express js on port 1234.
at present with local host things are working fine. Code is in git repository. If i have a remote server,...
0
votes
0answers
23 views
Unable to store values in mongoDb?
My API log:
OPTIONS /api/signup 204 14.010 ms - -
req.body { '{"name":"rahul jain","mobile":"343453","email":"[email protected]","password":"123","cpassword":"123"}': '' }
POST /api/signup 200 9.296 ...
1
vote
1answer
18 views
Error when creating a record with linklist using OrientJS
I'm trying to save an object to a database using the OrientJS framework on a NodeJS server.
This object contains some native parameters as well as an array of RIDs that should point to records of ...
-3
votes
0answers
15 views
I am downloading zip file using iframe but once file download completed not able to get any notification in Javascript. Any one can help on these? [on hold]
I am downloading zip file using iframe but once file download completed not able to get any notification in Javascript. Any one can help on these?
I am using node.js and C++ as backend services.
0
votes
0answers
12 views
ngMaterial fails to load on heroku but works on local machine
Heroku builds and deploys successfully. However, when I try to open the app using the url provided, it shows this error in the browser
Error: [$injector:modulerr] Failed to instantiate module ...
-11
votes
1answer
30 views
The 400 bad request error [on hold]
mean stack,during registration of vendor ,1 st record is inserting,but further while inserting i am gettting error as email address not found****.400 bad request error.
In meanjs,please help me
1
vote
1answer
19 views
Social authentication - better to do on FE or BE side?
If we want to do social authentication (for example Facebook or Google), then which side is best to integrate it. Backend side or front end side? For back-end we have NodeJS, in which we can use ...
-1
votes
0answers
24 views
How to store files in MongoDB using Node Js and AngularJs?
I am weak in coding so I am asking this type of question. I've read similar questions but could not find out the solution to my question.
All I want is to store the actual word or pdf file (and not ...
0
votes
1answer
22 views
Can't post to mongo/express api
I'm trying to add to my mongodb database through my angular 2 frontend but It doesn't seem that the post is going through. I use morgan to log all requests and it shows nothing, then I don't see ...
0
votes
3answers
35 views
How to add session and cookies for login app?
I have done the following app using Node js,mongo db and angular js ,
How to add sesssion and cookie for profile page to be visible only on logged in?
I have the program in github
https://github.com/...
0
votes
0answers
18 views
CORS exception while accessing rest service from angular js using node.js server
I am using node.js server to consume rest resource from angular js application.
My angular application is running on port 8082 and rest resource available at port 9081. I am able to access rest ...
0
votes
1answer
15 views
Can you use the node package ssh2 in a browser?
I am building an SFTP client in my browser for school. I am using the node package ssh2 and am able to get my code to work in the terminal. I can use the code to connect and read the directories and ...
0
votes
0answers
10 views
Dependency entry for http-proxy in package.json
What would be the entry for http-proxy in package.json.
"dependencies" : {
"http-proxy" : // Like this.
}
0
votes
0answers
18 views
Pass userinfo to NodeJs
I have a Angular form that passed the values to NodeJS. I am able to post the values present in the form. I also want to send the logged in user information to NodeJS.
My form:
<form>
<...
0
votes
2answers
50 views
where and how to use nodejs with angularjs
I am new to UI framework development. Currently my requirement is to work with anuglarjs and nodejs. I know there are few more like me who want to know the exact use..
I am confused as where i need ...
0
votes
1answer
28 views
How to delete a mongoDB document by id
I tried to delete document by its _id but when i click on the button the console shows 'Failed to load resource: the server responded with a status of 500 (Internal Server Error) '
Nodejs code
HTML ...
0
votes
0answers
30 views
My approach to authorization in Angular 2 and Node js - is it good?
I would like to ask you if my approach to authorization.
Create an array of logged User objects on server site:
{
username: string
token: string
}
After login success, token is being saved in ...
0
votes
0answers
37 views
Authenticating user in Angular JS using $http request
I have the code for backend for login/logout and authenticate, but i need help in authenticating user on Angular Front End.
Server Side code: Login
// controller that handles user login request
...
-3
votes
1answer
25 views
How to set session value in angular js
Am beginner in learning angular js,I need to know how to set the session values like user id, mail,username etc..
kindly tell me the efficient ways to set session values in angular js
thank you in ...
0
votes
0answers
21 views
Get list of Tags from EC2 instance Using Angular
So I'm using an AWS EC2 instance.
The instance has tags on it that i need to call into my angular application.
How can i call the tags on the current instance using the AWS-sdk
aws-cli is installed ...
1
vote
0answers
58 views
cant display values of array
I have a textbox which display the code of users
<label class="control-label">USER CODE:</label>
<input placeholder="Enter a User Code" type="text" class="form-control" ng-model="user....
-3
votes
0answers
27 views
best framework for real time GPS tracking
I'm searching for the best node.js framework for GPS tracking project where locations will be displayed real time on google maps. So far it was made with node+angular+express+socket.io but we are ...
0
votes
0answers
18 views
What will be Procfile for node+Angular 2 application?
I have an Angular 2 application. I want to deploy it to the Heroku. So it requires a Procfile. For my Node.js application, into Procfile I used
node serverName.js
But in the Angular 2 application I ...
0
votes
1answer
24 views
How to give multiple language support in nodejs
I have been given a project made in chinese language that uses nodejs, angularjs, and nodejs also provides restAPIs to mobile apps. I am required to give multiple language support in this project. I ...
-6
votes
0answers
16 views
What is best option MEAN JS or Spring with anjular Js , when we want to handle a stock management system? [on hold]
I have not used angular express node before but have some idea about spring .
I am going to build a inventory application and it contains statistic generation also.(using C3 graphs) . I want to know ...
0
votes
0answers
22 views
Error with core-js/es6/regexp
I'm having an issue with core-js particularly the core-js/es6/regexp module. It's giving me an error of
required in not defined in
../modules/es6.regexp.to-string
I'm using core-js 2.4.1. Is this a ...
0
votes
0answers
10 views
Configuring an AngularJs app that uses Webpack to include node modules such as 'net' and 'fs'
I am running an angular JS app that is going to use a node module 'box-sdk' and this module requires internal node modules such as 'FS' and 'net'.
I believe there is a way to configure webpack to ...
1
vote
0answers
18 views
Failed to load template in truffle project
I am developing Dapp using Truffle v3.1.2 which is a development framework for Ethereum.I am using angular on node for this dapp & unfortunately I am very new to node & webpack.I am storing ...
1
vote
0answers
20 views
tsc and lite-server error with angular 2
So I am following a tutorial online and when he runs his program for the first time it works with out problems. But when I run mine it gives me this error. So what I did was googled it and of course i ...
1
vote
1answer
33 views
EncodeURIComponent/DecodeURIComponent with characters like “é”
I have a web application, with some drop-down list.
One of these list have some parameters with an accent, such as : "Bonjour/COUCOU SPéCIALISTE/AB12345"
So when I select it and I made the research I ...
0
votes
2answers
18 views
Error when trying to fetch data from mongodb: Can't set headers after they are sent
Pretty new to node/express.I'm checking to see if the JOB(via the JOBID) already exists in the database IF YES SHOW IT IN VIEW PAGE
I am trying to fetch data from mongodb to HTML vie page via ...
0
votes
1answer
18 views
expressjs Cannot GET/ error, can not reach to any file in other folders
I am just trying to create a very simple server with expressJS , just to get data for my Angular application but I couldnt find any solution for that error, which is displayed in the browser ' Cannot ...
0
votes
0answers
20 views
Dynamically Created Scope Dependency Injection
Would a dependency injection be possible on dynamically created scopes, or will I have to review my logic?
I have the following code
$scope.color = {
red: 0,
green: Math.floor(Math....
0
votes
0answers
22 views
Location of Index Changes if Loading from a Route with Trailing Slash
I have a public directory which holds my bower components, stylesheets, and js files. All of my views are rendered server side with ejs and fed via routes. I load the partials from my ngroute and ...
0
votes
1answer
17 views
Using pug mixin arguments inside attributes using string interpolation
I'm using angular and pug, and have the following template
mixin row(label, value)
tr
td
strong= label
td
span= "{{" + value + "}}"
Which I'm ...
0
votes
2answers
48 views
AngularJS: Unable to receive data from $http.post()
I am able to:
Send text data from text boxes in HTML form to Controller using
ng-model and ng-submit directives.
Send this data from controller to Service.
Problem:
- From Service, I am not able ...
1
vote
1answer
21 views
Trigger CSV file download with Angular
This question has been asked a fair bit before, but none of the solutions I've seen seem to work, potentially because of the way I stream the file back to the browser. The CSV I ultimately want is in ...
-1
votes
0answers
43 views
Angular 2 project setup with Asp.Net MVC on Visual Studio 2015
I am currently learning Angular 2 and am trying to setup an Angular 2 project with Asp.Net MVC setup on Visual Studio 2015.
I referred to couple of articles on Internet and they seems to be too ...
1
vote
2answers
64 views
How *ngFor works with template variables in angular 2?
Main Component :
Html
<event-thumbnail *ngFor='let event1 of events' #thumbnail [event2]="event1" (eventClick)='handleEventClicked($event)'>Hello</event-thumbnail>
<button class='btn ...
4
votes
4answers
268 views
Angular 2 npm install error packages
I'm using Angular 2.Node version is v6.9.1.
Npm version is: 4.0.3.When I run npm start the following errors are shown:
[email protected] start /var/www/html/ng2-fundamentals
> tsc &...