Tagged Questions
0
votes
0answers
9 views
How to show validation errors thrown by node server in angularjs?
I am using angular-auto-validate npm package for client side validations in angular.
I am very satisfied with the package on client side validation. Now I want to handle server side errors.
Here is ...
1
vote
1answer
20 views
CORS with Express.js and Angular2
I'm trying to download a PLY file from my remote Express.js server to my Angular/Ionic app. I have my Ionic app hosted on Amazon AWS right now. Here's the Typescript from the Ionic app:
//this....
0
votes
0answers
13 views
Angular 1.5 Bootstrap multiple Carousel issue
I am trying to add multiple carousels for events on page. Here is the code.
<div class="col-md-4 col-sm-6" ng-repeat="event in events">
<div class="box">
<div class="pic">
...
1
vote
1answer
37 views
Clear the errors once input field is valid
I'm using AngularJS with node.js. I've implemented error handler as follows:
node router effect.js:
router.post('/', function(req, res, next){
req.checkBody('name', 'Effect name is required.')....
0
votes
0answers
22 views
http-server not starting in systemd
I'm using http-server to server a simple Angular application. The application runs fine when I run it from bash. But when I try to run from systemd unit file, it fails.
This is the systemd unit file ...
0
votes
2answers
19 views
Return data with then to controller Angular
Follow the code
server.js
app.get('/list',function(req,res){
console.log('/list api run')
var data=[
{ "isActive": false, "balance": "$3,960.64", "age": 30, "eyeColor": "...
0
votes
1answer
18 views
Angular + NodeJS: Read Files From Folder With Promises (fs.fileRead and fs.readdir)
I'm trying to read files from a folder using NodeJS and Angular. I'm able to iterate through the folder and access the files data, no problems here.
My main issue i that i'm unable to pass the result (...
-3
votes
0answers
37 views
Why are there so many languages? [on hold]
I'm a business student and I have no clue about neither the programming languages nor their implications. I started an outsourcing platform development company, and I'm trying to understand the ...
0
votes
0answers
25 views
ng serve error: “Cannot read property '0' of undefined”
I'm new to Angular. I downloaded the Angular 2 quick-start template from https://github.com/angular/quickstart (app folder is inside an src folder), and then used VS code to modify packages.json ...
0
votes
1answer
25 views
I want to show real time data fetched by the REST api on the Frontend of the application
I have a list of transactions that are generated in seconds, I am using a wrapper to get these transactions so I made a rest api to get the transactions according to the no. But in the mean time the ...
-3
votes
1answer
29 views
which language shall I use to write platform independent web app? [on hold]
I read that web browsers like IE, Chrome behave differently and do not always support same APIs/standards. For eg, if using Javascript, to add event listeners, I'll have to write if/else blocks to ...
0
votes
1answer
39 views
Displaying data from MongoDB (MEAN Stack)
I am trying to displaying some data from a Mongo DB onto the front-end. I am working with the MEAN stack, which I'm relatively new at.
I have successfully gotten the data to display in JSON format ...
1
vote
1answer
27 views
What part of node modules is required in production and development?
Can I safely delete other folders in a node modules library except for the min files that I use in the project?
Eg: using angular ui-select library for dropdown
only using min files from - ...
0
votes
0answers
14 views
Server Side Datatable using Node+Angular+Mongo DB
I use server side datatable in php, but i want to use this with Node+Angular+Mongodb, how can i use this with MEAN application.
0
votes
2answers
26 views
At server side, Req.body received as { }
import {
Injectable
} from '@angular/core';
import {
Http,
XHRBackend,
RequestOptions,
Request,
RequestOptionsArgs,
Response,
Headers
} from '@angular/http';
import {
...
0
votes
0answers
14 views
Is there anyway to detect ui-router routing of angularjs in express routing
I am new to both angular and node. I am working on a project which has social sharing but due to angular issues it was not happening correctly. So I found a solution to reroute the url when facebook ...
0
votes
1answer
14 views
Node js dependency for Angular 2.4.8
I am new for angular 2.4.8, I have gone through the angular site for tutorials and all, but everywhere I found that all angular libraries are imported using node modules (using package.json to install ...
-2
votes
1answer
23 views
How do I fetch existing data from Firebase Database?
I’ve a Real Time Database in the Firebase. I want my app to fetch them and display in the app. How do I do it? The app is based on AngularJS platform with HTML & CSS as front-end.
Data to fetch ...
0
votes
1answer
27 views
NGINX - location is overriding root - 404 for any static file
This is not the best title, but it fits my problem.
I've been trying to place an angular front end and nodejs rest api, under the same domain and in nginx under the same server.
When i'm trying to ...
0
votes
0answers
14 views
nodejs using string variables (sync and/or async)
I am writing a chat bot for sending random (8 char) messages in an inhouse webapp and haven't figured out why node is not converting the var into a string.
var utilities = require('../utilities/...
-1
votes
0answers
11 views
How to let AngularJS call a Node.js module
I am new to AngularJS and Node.js and I don't know how to make them interact with each other. Say I have a web scraping module in Node.js that I want to send data with into my AngularJS app. I want to ...
0
votes
3answers
20 views
javascript on node append multiple called functions
In angular, there is an option to call $http service and append the callback for success and error:
$http.get(url).success (function() { do A}).error (function () { do B});
I would like to implement ...
0
votes
1answer
27 views
Making a REST Post Request Without Passing a Name/Id in Angular 2 App
I have a situation - in my Angular 2 app with a Node/MongoDB backend API - where I want a user to be able to click an "Add Record" button, and have a REST post request send that info to the API in a ...
0
votes
1answer
26 views
Connect user to Firebase from front and back
Here is my case :
I have a front-end (AngularJS) with a connection to Firebase, and I user the firebase auth to authenticate users.
For some special action (for example some time I need to send an ...
1
vote
0answers
15 views
Code for connecting CouchBase server bucket using Angularjs
I am new to angularjs, i am developing an application using angularjs and couchbase DB. Can anyone give suggestions how to connect couchbase server bucket using angularjs with authentication. Any ...
0
votes
0answers
14 views
Retreive data from psql in node.js
I'm trying to test my psql DB. I'm using node.js for displaying dato into an HTML page. I've got retrivied data and displayed into the terminal but really I don't know what is the right procedure to ...
0
votes
0answers
10 views
Angular How to upload video with thumbnail to node server
I want to upload a video along with thumbnail to a node server.
I have searched a lot and haven't find a way to upload a video along with thumbnail as image.
-5
votes
1answer
22 views
http://harbour.space/ - What jQuery effect is this? When I zoom out the circle disappears [on hold]
How do I achieve this effect? I am looking to make a triangle instead of this circle. What technique should I use for animation?
0
votes
0answers
23 views
How to switch the login button to logout when the user is authenticated successfully in bootstrap
I developed a project using bootstrap and angular js. I want to change the login button to logout when a valid user logins successfully.
My Index.html code is given below:
<!DOCTYPE html>
...
1
vote
0answers
27 views
Export excel file from frontend using Angularjs getting an unusual content error when write the excel file through plugin js-xlsx
On opening the excel file whcih is export in .xlsm format file getting the above below error
Please look at the below code in controller on write the excel file
Angular Controller Function using js-...
0
votes
3answers
26 views
Convert from buffer to base 64 to read using angular
Hello i have an app using the MEAN stack. I am getting from my end point for getting images. the image array value is looking like :
8,8,7,7,9,8,9,8,9,8,9,9,8,8,8,8,7,9,7,7,9,10,16,13,8,8,16,9,7,8,12,...
0
votes
1answer
22 views
Gulp compiles in my IDE, but breaks site when viewing localhost using nodemon
I'm fairly new to coding, but have used Gulp a few times successfully, so I'm unsure what I'm doing wrong. In trying to solve this on my own I've deleted node_modules and re-installed, updated my ...
-1
votes
2answers
38 views
How to detect when user has saved file to local disk in Angular/NodeJS?
I'm creating a temporary JSON file in my NodeJS backend which holds the information the user has filled in a form. At the end of the form when user clicks on the download button, I run some Python ...
1
vote
1answer
17 views
how i can install and use its (server success but disconnected when i install angularjs schemaform.io)?
I use npm test
I RECEIVE MY OUTPUT without erros but this works and close after 20 seconds
but I dont know how use this
PhantomJS 2.1.1 (Linux 0.0.0): Executed 59 of 90 SUCCESS (0 secs / 4.326 ...
0
votes
0answers
10 views
Using Private Repo NPM Package as Dependency With Source Files Needing Compilation
Can't find a good answer anywhere. We have a private Github repo that is an Angular module and the source needs to be built (concat, minified, etc.) and put in a dist file when consumed or installed ...
-4
votes
0answers
35 views
how to take a screenshot using js
I need help to implement a screenshot button.
html code:
<md-dialog-content class="md-dialog-content markup" layout="row">
<canvas flex id="markup-canvas"></canvas>
</md-...
0
votes
0answers
31 views
Call C shared library API (in .so lib) from JavaScript
I have a custom C shared library (.so lib) with some APIs. I want to invoke these APIs from AngularJS (or JS). My constraint is that I should not recompile the shared library code using any other ...
0
votes
0answers
24 views
Error: [$http:badreq] Http request configuration url must be a string. Received: undefined
if ( type === "category"){
var URL = "http://http://www.example.org/api/get_category_posts/?id="+$stateParams.id;
}
if ( type === "post_tag"){
var URL = "http://http://www.example.org/...
0
votes
0answers
20 views
Drawbacks of $location.path and alternative?
I want to realise a simple online editor like plunker. In a new page (localhost:3000/#/new) , users could write code, then the Save button creates a new post and add the files to it, then we change ...
1
vote
1answer
19 views
Access to nodejs through apache
I'd like to add security on my nodejs application.
For this, I have added a proxyReverse with apache to access my node application with apache.
It's working, but the problem is that i'm still able to ...
1
vote
0answers
18 views
How to retrieve domain of website irrespective of the redirect domains
I am trying to fetch information from the url provided as an input, I need to fetch exact domain name irrespective of the redirect url.
For Example: https://www.example.com is actually hosted on naked ...
0
votes
0answers
10 views
Passing errors from node routes to angular when using $resource
I'm trying to use a form to add a user to the Mongodb using mongoose in nodejs. I want the username field to be unique. I'm able to add the user from angular form to mongodb using the following in ...
0
votes
1answer
25 views
Integrating Passport with my Angular App: How to start authentication flow from client-side?
I am new to AngularJS and NodeJS.
I am using passport-facebook and passport-twitter for a project. Everything is set up properly on the server; getting the access token needed to make API calls.
But ...
0
votes
0answers
55 views
Deploy angularJS application
I did my first angular app. I downloaded: https://github.com/angular/angular-seed
So I started building over it.
I start server with npm start which executes http-server -a localhost -p 3000 -c-1 ./...
0
votes
1answer
17 views
Upload files with Multer without using action, method, encrypt=“multipart/form-data” attributes on form tag
so I'm trying to upload an image with Multer but I want to use Angular's $http.post to upload the file. Not have a submit button trigger the form method and action. The problem is if I do not use ...
1
vote
0answers
31 views
How to create a search in real time with MEAN Stack?
Is there an simple example of creating real time DB search with MEAN stack, I am only having knowledge in MEN and I would love to learn Angular 2.
Right now I am working on simple Enterprise project ...
0
votes
0answers
20 views
Adding table column dynamically based on document in mongodb
Objective: Create a single-row table using angularJS with number of columns equalling number of document records in a MongoDB collection.
Tools used: MEAN stack, bootstrap
Details: Suppose I have a ...
1
vote
1answer
29 views
Download system-polyfills.js through npm
I want to download some polyfills for the Microsoft internet explorer browser:
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/systemjs/dist/...
0
votes
0answers
56 views
loop through function with data generated by the function in javasctipt
I want to pass the result variable from the function in a loop, I want to generate an array of month names and number or orders.
var nextInterval = function(searchData, monthList, daysOfMonth, year, ...
0
votes
0answers
13 views
Deactivate view engine in MEANJS.org
I'm using MEANJS.org and trying to figure out how to push client views and routing to Angular. The default setup seems to have Express Handlebars handle the views.
There is this for view engine
/**
...