Data dodania Pytanie
2017-03-18 23:03 How to generate a list of radio buttons/checkboxes with ejs from JSON object? »
I have a json object that I am passing to ejs, and based on certain fields in that object I would like to generate checkboxes and radio buttons, witho...
(0) odpowiedzi
2017-03-18 22:03 Can't see my html file in view »
I am trying to run basic mean app. My app is working without the angular part. But when I have included angular I can't see the html page which is i...
(1) odpowiedzi
2017-03-18 13:03 Getting error in a socket.io chat client on heroku »
I have uploaded a node.js, express chat app to Heroku, but it does not work. Here is my log: 2017-03-12T15:55:42.109224+00:00 heroku[router]: at=err...
(0) odpowiedzi
2017-03-18 05:03 Parentheses in an object literal »
Are parentheses in an object literal simply the grouping operator? node-stringify will convert: [ { a: 1 } ] to the string: [({'a':1}),({'a':2}...
(3) odpowiedzi
2017-03-18 00:03 Node UnhandledPromiseRejectionWarning »
I have a problem with my npm package like this question but I can't figure out how to solve What is Unhandled Promise Rejection This is my index.js:...
(1) odpowiedzi
2017-03-17 19:03 Signup called twice nodejs »
I have a problem with my signup method. When I fill the signup form and i click the signup button, the method signup is called two times. In the first...
(0) odpowiedzi
2017-03-17 13:03 NodeJS: How to dynamically generate an object structure? »
Hello world's best community! I'm as new to stackoverflow.com as I am to JavaScript, so apologies in advance if this question gonna sound somewhat am...
(0) odpowiedzi
2017-03-17 12:03 Directory navigating to CSS Stylesheet »
I'm trying to navigate to a stylesheet and I've tried many options but none are working. (/stylesheets/main.css) (../stylesheets/main.css) (./stylesh...
(2) odpowiedzi
2017-03-17 08:03 How to chunk the bundle.js file? »
I have created a project using react and flux architecture. Need to chunk the bundle.js file because by combining all the files it is creating a huge...
(2) odpowiedzi
2017-03-17 07:03 Best way to calling API inside for loop using Promises »
I have 500 millions of object in which each has n number of contacts as like below var groupsArray = [ {'G1': ['C1','C2','C3'.......
(0) odpowiedzi
2017-03-16 23:03 export default in javascript »
I'm working through a tutorial on how to create a restful api using express and mongoose. I'm understanding everything except for this bit right here...
(4) odpowiedzi
2017-03-16 23:03 How to Iterate through JSON to make ejs snippets with dynamic data »
Alright, I've found myself in over my head with this one (or it's late and I can't think, either / or). I have a json response that looks like -OB...
(1) odpowiedzi
2017-03-16 19:03 Google App Engine health checks spamming app »
I've deployed a nodejs app running on the Google App Engine Flex runtime using the following app.yaml configuration: runtime: nodejs env: flex health...
(0) odpowiedzi
2017-03-16 19:03 Moment.js plugins in Ionic2/Cordova typescript project »
In my Ionic 2 project written in Typescript I use moment.js library. I import it using code snippet: import * as moment from 'moment'; After I do s...
(1) odpowiedzi
2017-03-16 06:03 Unexpected token catch while compiling EJS »
I received the following error in terminal: SyntaxError: Unexpected token catch in /Users/Person/file_name/views/pages/single.ejs while compiling ejs....
(0) odpowiedzi
2017-03-15 20:03 How can I return an error or an N/A if an object doesnt exist in the JSON I'm using »
I'm wanting to display who is playing in today's games as well as what channel they are on using this JSON, but it keeps giving me this error: TypeE...
(3) odpowiedzi
2017-03-15 18:03 Integrating react into EJS project »
I'm trying to integrate React (and subsequentially JSX) into my already built / established project that uses EJS. (EJS w/ Node, express, mongo, brows...
(0) odpowiedzi
2017-03-15 14:03 Can not set timeout in Node.js loop »
Here, i tried to set timeout for every iteration but i could not make it because nature of nodejs. Is there any way to do that? Thanks in advance ...
(3) odpowiedzi
2017-03-15 11:03 node.js callback and recursion »
I am using the google api to get a list of all the messages in my mailbox. The API is paginating the list, and with every call it returns the next pag...
(2) odpowiedzi
2017-03-15 08:03 Live Video Stream on a Node.js Server »
I have been researching this a lot but am frustrated as I feel like the solution should be simple though I know wont be. Ideally i'd just want to use ...
(1) odpowiedzi
2017-03-14 23:03 EJS include external html »
Is it possible to include HTML into EJS? We have some templates that live outside our local environments (Apache/SSI), is it possible to do somethi...
(0) odpowiedzi
2017-03-14 23:03 Visual Studio 2017: Is it possible to disable Node.js? »
Ever since upgrading to Visual Studio 2017, I have about five or six Node.js processes running and constantly taking up tons of CPU. This seems to hap...
(0) odpowiedzi
2017-03-14 11:03 If value of a property is null when updating then that property should not be added to the record »
Suppose I have a mongoose schema like this: var mongoose = require('mongoose'); var Schema = mongoose.Schema; var testSchema = new Schema({ name...
(4) odpowiedzi
2017-03-14 02:03 Cloudfoundry : How to combine two runtimes »
Is there a way in cloundfoundry to combine two runtime environments? I am deploying a NodeJS app to IBM Bluemix. Now, i also want to be able to execut...
(2) odpowiedzi
2017-03-14 01:03 Using Mongodb variables out of its functions »
So I'm making a web application and I'm trying to send variables to an EJS file but when they are sent out of the mongo functions they come out as und...
(2) odpowiedzi
2017-03-13 17:03 Visual Studio 2017 - Node.JS Server Process - Turn off? »
I'm working on a ASP.NET App in Visual Studio 2017 and I'm noticing a Node.JS: Server-side Javascript process running at 1.3GB to 1.8GB of memory. My ...
(2) odpowiedzi
2017-03-13 12:03 Ho do I retrieve parent document by its id without sub document in nodejs application? »
I have a schema like parent document is User and sub-document is batchSchema. Here my schema is var batchSchema = new Schema({ batchname: { ...
(1) odpowiedzi
2017-03-13 06:03 Use memory location as hash key in JavaScript »
Say I have a couple of objects that are on the heap: const x = {foo:'bar'}; const y = {foo:'bar'}; const z = {foo:'bar'}; is there a way to put the...
(1) odpowiedzi
2017-03-12 18:03 Using a url as a slug in Express »
I have the following route in my Express project: router.get('/statusCode/:url', function(req, res){ //finds the http status code of a webpage ...
(1) odpowiedzi
2017-03-12 15:03 Using React IndexRoute in react-router v4 »
I'm learning React myself with online tutorial. So this is a basic example about using React Router: <Router history={browserHistory}> <...
(1) odpowiedzi
2017-03-12 07:03 Send json data (asynchronous) to my response »
So,upon request I respond with a basic template(I use ejs) and I want to add json data to it when I get from an external API. I have noticed that I ca...
(1) odpowiedzi
2017-03-12 05:03 PassportJS not passing signup data to database, possible database connection issue »
I'm using a scotch.io tutorial on setting up PassportJS local login for an app I'm working on. After setting up my signup/login pages, MongoDB, Passpo...
(2) odpowiedzi
2017-03-11 19:03 Why doesn't React component doesn't render even though webpack doesn't throw any errors? »
app-client.js var React = require('react'); var APP = require('./components/APP'); React.render(<APP />, document.getElementById('react-contain...
(1) odpowiedzi
2017-03-11 18:03 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: ng2-fundamentals-demo@1.0...
(4) odpowiedzi
2017-03-11 17:03 Divide String REGEX »
I want to writre a Regular Expression to divide these two lines into rows Example 1;John;Doe;45 2;jaja;dada;23 Result : ID : 1 Name : John Las...
(1) odpowiedzi