Tagged Questions
0
votes
0answers
12 views
How to deal with response while receiving it from server ( $http.get ) to avoid memory leak in mobile?
I make a http get request to nodejs server and the response from the server is too big, so my app gets crashed because of memory warning leak.
Can I write the response to local storage file while ...
0
votes
1answer
23 views
Angular UI router sub states not working on IE
As I said in my other question, I'm creating a webapp in AngularJS with NodeJS, Express and Angular-UI-Router.
At first I couldn't get the page to load at all (I managed to solve that problem), now ...
0
votes
0answers
32 views
Query to mongodb are slow
When i make query to mongodb using Mongoose it will take a lot of time.
My code is :
Even there is no much data in the collection. It's only 3-4 documents.
this gif will show what my problem is. ...
0
votes
2answers
20 views
How to save a File in MongoDB database?
I'm making a small project storing a document file in MongoDB database. I heard that document files cannot be stored directly in MongoDB whereas we can store it in google drive or dropbox or etc., and ...
-2
votes
1answer
19 views
Load data without hard refresh
Case: An user purchases an airplane ticket from American Airline on my website. It takes an hour for the order to get processed, after which I need to show a navigation tab.
Question: I don't want ...
1
vote
2answers
35 views
How to access my working angular 2 app on a VM
I have developed an Angular 2 app, and on my local machine, when I say, npm start, it gives me a string such as
Serving C:\Users\pepperboy\myangularproject at http://127.0.0.1:8080
It also ...
0
votes
0answers
15 views
How to send a parameter with an Angular $http.get from controller to load specific information?
So I've got this function in my controller that I'm trying to use to talk to my node.js server:
$scope.LoadClassroomList = function(target) {
targetClassroom = {Classroom: target};
...
1
vote
2answers
28 views
How to get the server time in the MEAN stack ? (MongoDB, Express, Angular, Node)
CODE:
exports.create = function (req, res) {
var article = new Article(req.body);
article.user = req.user;
console.log("1) LAST: "+article.user.last);
if (article.user.last != null &&...
1
vote
2answers
30 views
AngularJS Node app downloads instead of loading in Internet Explorer
Whenever I try loading my AngularJS webpage (on a node js + express server) through http://localhost:3000, Internet Explorer just tries to download it with a random name and no file extension, instead ...
1
vote
1answer
24 views
How can i move value from angular form to server nodejs
- This is the html:
<body ng-controller="stripeController">
<form action="/stripe" method="POST" id="payment-form">
<span class="payment-errors"></span>
...
0
votes
1answer
14 views
On creating pdf using jsPDF new pdf pages are appending with old pages , after click in angularjs
On creating pdf using jsPDF new pdf pages are appending with old pages ,
after click in angularjs
This is the code:
pdf.addPage().setFontSize(24).setFontStyle('bold').setFont('helvetica').text(20, ...
0
votes
0answers
37 views
Web apps, socket.io doesn't work on iOS
I created a beautiful web app using the node.js on server side and AngularJS on the client side. Everything works well in all devices but from few days I've notice something strange: if I use Safari ...
1
vote
1answer
42 views
Angular $scope data wont update
Im writing an application which connects to a 3rd party api.
The api uses a auth token system so i have an async node js function which first requests the token and then uses that token to retrieve ...
0
votes
1answer
47 views
How to Save ng-repeat $index to DB ( rownumber: 1.1 ,1.2,1.3) using angularjs
I am working on index page of book functionality
i.e : 1.1
1.1.1
1.2
1.2.1
where 1.1 & 1.2 is parent ng-repeat &
1.1.1 & 1.1.2 is child ng-reapet
now i want to ...
0
votes
1answer
48 views
CORS error :Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response
I am trying to send the request from one localhost port to the another. I am using angularjs on the frontend and node on the backend.
Since it is CORS request, In node.js, i am using
res.header('...
0
votes
0answers
23 views
Attaching pdf generated by jspdf to email nodejs
I am trying to send a pdf generated in my applicaitons frontend (angular) using jspdf to my backend (nodejs + express) so that it can be attached to an email. I can succesfully save the pdf on the ...
0
votes
0answers
15 views
.NET Angular using RequireJS
I created a new ASP.NET Empty Web Application in Visual Studios 2013. I have an angular project with the following directory structure:
├───TestProject
│ ├───index.html
│ ├───package.json
│ ├───...
0
votes
0answers
27 views
Multi sites using the same code different theme color and logo
I will be using the same angular application for many sites, the only difference is going to be the color of the CSS and the logo. Therefore I decided to use LESS to declare a variable as a color of ...
0
votes
1answer
19 views
How to do a get request with all idRefs
I have 2 models in my project, 1 is stores and the other is products, the stores has a reference to products like this:
produtos: [
{ type: mongoose.Schema.ObjectId, ref: 'Produto' }
]
and basicly ...
0
votes
0answers
12 views
upload image for specific user is not working with molter
im trying to do a simple image upload when i submit my registration form, basicly i want to save all the data that i send and then retrive the image for the user when i need, so i did this:
view
&...
0
votes
1answer
16 views
Different index.html for angular app
I would like to use different index.html for my client.
I would like to have a /backend with a index.html and different views (working)
I would like to have a / where I want to implement some forms ...
-2
votes
0answers
25 views
How to log in as an admin in Mean.js?
REFERENCES:
Mean.js github: https://github.com/meanjs/mean
Mean.js website: https://meanjs.org/
https://www.google.com/?gfe_rd=cr&ei=4hKXWIXnO6rC8gf8_7uoDA&gws_rd=ssl#q=make+a+certain+user+...
2
votes
1answer
54 views
Drop down list and values
I having a problem in setting the values of dropdown list. Here I am pasting my code.
HTML Code:
<form ng-submit="save()">
<table style=" table-layout: fixed;" class="table">
<thead&...
0
votes
1answer
42 views
why meteor npm install --save angular-ui-grid dont work?
I have a very big problem, with meteor npm install, I using:
Meteor Angular
Meteor
I try to import ui-grid like uiRouter or angularUBoostrap (as you can see in the image). But is imposible. Is not ...
0
votes
0answers
28 views
Heroku Deploy Failing but Local Build and Compile Succeed
Angular app using node, bower and gulp.
Problem
When trying to log in on Heroku: TypeError: w is not a function
Initial builds in local environment were fine. Gulp build and was able to login. Gulp ...
0
votes
2answers
36 views
Not able to update document in mongodb from node.js
I am developing an online course application and I am trying to add new video lectures for a particular course, once the course is created. Once a course is created, after that, if we try to add new ...
1
vote
1answer
32 views
Using ExpressJS and AngularJS
I'm learning NodeJS and Express. I'm using Node and Express along with 2 Node modules to get the client's IP address. That part is working fine. I'm having trouble trying to use AngularJS (1.x) to ...
0
votes
1answer
18 views
Send user online/offline status to Laravel with socket.io
I have a chat app as real-time with socket.io. I want to save online/offline status on the database in Laravel back-end. For online status I don't have problem, but for offline status, I don't have ...
1
vote
1answer
19 views
can't get and retrive user data after login
I'm a newbie with angular and I'm basicly trying to set and get user data via an angular service. First thing I do is when I log-in I connect to my node route and return the data if the user placed ...
0
votes
2answers
30 views
angular http get with node js
I am querying data from mongodb and sending that as a json to a URL
querying data from mongodb
router.get('fillSurvey/:ID', function (req, res) {
Survey.findOne({_id:req.params.ID}, function ( ...
4
votes
1answer
47 views
Why does my url contains “!” when using angular?
I just started with MEAN stack and i'm following some TUTs.
I'm using the npm-views from Angular and trying to redirect an html a tag to another html file. However when I go to localhost:3000 I get ...
0
votes
0answers
14 views
How to create angularjs directive with browserify?
I'm getting tripped up on the syntax, and my overall understanding. I've tried to create a directive as an element, and I get a repeating loop where it tries to load angular more than once.
Does ...
0
votes
0answers
14 views
Using Angular in node-red to build a table with each cell data being manipulable using its own addres?
I'm trying to implement a system in node red for an internship project. First I've been tasked with creating a UI. So I created a function node which produces the dummy data for me. It produces two ...
-1
votes
0answers
20 views
how to decrease packet travelling time using express gzip compression
Gzip express compression is working very well. It has compressed 8 Kb to 2 Kb but there is no reduction packet travelling time. Travelling time not reduced.
0
votes
0answers
17 views
Monitoring agent alongside Protractor testing | Read from chrome console
I want run some script alongside Protractor testing which will be checking some content on page if is visible and showing error. It can be checking the "frame" on page every Protractor step, and it's ...
0
votes
0answers
14 views
How do I get user info to persist client-side after authenticating via passport-facebook?
Ok, so the problem seems simple enough, but apparently it's not.
For clarification, I'm using the MEAN stack.
I have passport-facebook authenticating my users, and I'm also using express and ...
0
votes
1answer
23 views
How to lazy load with angular using mongodb data
I want to implement lazy loading in angular.js, i am sending the list of data from backend to the UI using nodejs, i need to implement, on scroll 10 items, are there any examples to achieve this ...
0
votes
1answer
43 views
NodeJS POST results in undefined
All my requests work perfectly except when I try to add an item to an array of json elements, it will return undefined every time.
Controller:
vm.addOptie = function () {
var newOptie = {...
0
votes
2answers
14 views
Open file explorer in ionic via $ionicActionSheet.show()
I am trying to open file explorer in my ionic app when user clicks on button in Ionic ActionSheet. This can be simply accomplished by putting <input type="file"> in HTML templates. But I am ...
0
votes
0answers
33 views
Large file uploads fail with access denied
We're implementing an API, where a large file is to be uploaded locally to the main server.
Everything works fine until we try uploading large files (>= 4GB); Those fail immediately before even ...
0
votes
0answers
25 views
How should I run my angular service file independently
I have a angular js service
angular.module('abc', ['pqr'])
.factory('testService', ['$soap',function($soap){
var base_url = "https://helloworld.net/cbapi/report";
return {
...
0
votes
1answer
28 views
Angular ui-routing with domain aliases
We use Angular-UI-Router to navigate to our website. That is working fine. But we want to use domain aliases which point to a specific page of the website, with the url of the alias in the addressbar.
...
0
votes
0answers
13 views
How to send response from server in nodejs to generate pdf in frontend using angularjs
Can you anyone suggest me,
I have two cases in the backend for same request. In first case server has to respond in json format and in second case I need to send arraybuffer data in json response. ...
-1
votes
0answers
40 views
Socket.io listening an array result from API route
Hi I am using the FullStack Angular Generator and I am trying to understand how to use socketIO. Despite all tutos I begin to be really confuse.
I would like to listen a specific array, result from an ...
0
votes
2answers
29 views
egghead.io webpack angular tutorial
I have problems with the tutorial webpack-angular from egghead.io. I'm in the step 3 "ES6 with Babel".
I need your help because I would like to resolve it.
I'm following your tutorial and I'm ...
0
votes
0answers
24 views
Module not found errors in angular-cli
i am trying to deploy the website on local machine , I downloaded below mentioned dependencies and then ran command ng serve
but i am getting this error log->
(susper_env) [vibhcool@localhost ...
0
votes
0answers
14 views
Does browser-sync support http post?
Issue details
when i submit a from data from another mobile device, it does not post anything in the PC browser that I want to sync with the mobile device.
The code below is work for posting from ...
0
votes
0answers
22 views
Node-JS dist folder not getting updated dynamically
I'm developing MEAN Stack application having front end in Angular JS and using visual studio 2015 as editor.
We used an RDash angular template from following site
http://startangular.com/product/...
1
vote
0answers
33 views
Populating data from referenced models in different modules in MEAN.JS
I am absolutely new to the MEAN stack, and I am using the MEAN.js(ver 0.4.2) generator for my project.
I am using the default users module and created a new module 'Topics' using the module ...
0
votes
1answer
14 views
Mongoose Arguments must be aggregate pipeline operators
We are trying to build a function in NodeJS that allows us to use that function with find or aggregrate parameters and returns the result.
The find option works fine, also the limit and offset does. ...