Data dodania Pytanie
2017-06-16 20:06 Express passing parameters to template depending on the environment »
I am using Express and EJS templates. In production environment I am calling some middleware's and passing result to the template. req.body is returne...
(0) odpowiedzi
2017-06-16 19:06 Getting Can't set header after they are sent error when i render data with ejs »
I am getting "Can't set header..." Error when i try to include my header file and render data from express. This is my code router.use('/dreams',...
(0) odpowiedzi
2017-06-16 18:06 TypeScript: Can I import a folder without having to write an index.ts file? »
If most directories of a project contain no more than 2-3 TypeScript files and all of their exports should be accessible when importing the containing...
(2) odpowiedzi
2017-06-16 15:06 layout is not render in ejs template with nodejs »
This is my code one is view/layout.ejs file and other is view/users/users_list file when i am render this code then shows error TypeError: /home/ad...
(0) odpowiedzi
2017-06-16 09:06 Declare a function that implements an interface »
I have this TypeScript code in a manually created .d.ts file: export interface IBeforeHook { foo: Function, bar: Function } export type B...
(1) odpowiedzi
2017-06-16 07:06 Google Cloud Function Node.js Firebase Url »
I have an Android app where I am able to send push notification from my device in http format, but now I want to write a node where I want the push no...
(1) odpowiedzi
2017-06-15 20:06 No Mongo Query gets result when cron is running in background »
I have been NodeJS as server side and MongoDB as our database. It really works great together. Now I have added node-schedule library into our system...
(1) odpowiedzi
2017-06-15 19:06 How do you remove the related object from a mongoose document array »
Company collection: { "_id": { "$oid": "594196a685d5c72f00517f64" }, "name": "company", "reports": [ { "$oid": "5942afb...
(0) odpowiedzi
2017-06-15 17:06 Bot Framework Event for Postbacks? »
My question: I have an adaptive card with a postback button whose value is say "thisIsMyPostback". Now, I want to act on this postback as one would....
(2) odpowiedzi
2017-06-15 15:06 EJS: Pass array of pages into include(page) »
I've created a dashboard page where a user can save different components of the site to one page for quick viewing. I'm able to dynamically load one c...
(2) odpowiedzi
2017-06-15 00:06 Chrome/Firefox sending two POSTs under the hood exactly 5 seconds apart with only one call to fetch Nodejs 8.0.0 server »
NOTE: This isn't the preflight OPTIONS, and it isn't the favicon or anything else like that. It's actually 2 POSTS. There is a screenshot below to sho...
(1) odpowiedzi
2017-06-14 23:06 Client side rendering using i18n and ejs »
I'm currently developing a music platform, using NodeJs, Express 4.0, and EJS as my template engine. As we must have a player constantly playing thro...
(0) odpowiedzi
2017-06-14 22:06 SQL Server - Performance issue with concurrent queries »
I am recently facing a troubling issue with SQL Server. I am using a node program to connect and run queries. As number of request/db queries increase...
(0) odpowiedzi
2017-06-14 15:06 Should package-lock.json also be published? »
npm 5 introduced package-lock.json, of which the documentation is here. It states that the file is intended to be included with version control, so a...
(1) odpowiedzi
2017-06-14 10:06 Counting the number of hits to my webpage »
I have developed a webpage for the internal monitoring of some services of my company. We wish to record the number of hits on the page and display it...
(2) odpowiedzi
2017-06-14 06:06 Failed to lookup view "/landing.ejs" in views directory »
I'm working in Cloud9 and when trying to run the application i'm greeted with the error failed to lookup view "/landing.ejs" in views directory: Thus...
(1) odpowiedzi
2017-06-13 16:06 Node.js setImmediate executed before I/O callbacks (Event Loop) »
Take a look at the following code: var fs = require('fs'); var pos = 0; fs.stat(__filename, function() { console.log(++pos + " FIRST STAT"); }); f...
(2) odpowiedzi
2017-06-13 15:06 Cleanest way to generate stars in EJS »
Using ejs in Node.JS (templating) what's the cleanest and most efficient (in terms of typing) way to generate this kind of html for stars? stars look...
(1) odpowiedzi
2017-06-13 12:06 EJS Error: Could not find matching close tag for "<%=" Error During Post »
I have searched for the solution for the error which I got during POST the data from index.ejs to index.ejs. Although I have disabled the <%=varia...
(0) odpowiedzi
2017-06-13 10:06 how to create a login API in node js? »
I am developing a web application which is completely written in node js. All the functionalities and the web UI has been completed. What happening ...
(3) odpowiedzi
2017-06-13 10:06 Authenticated from facebook in MEAN »
Is there any way to get Authenticated from facebook in MEAN Without any 3rd party plugin like passport or auth0 or anyother? If Yes then, please ment...
(0) odpowiedzi
2017-06-13 04:06 How to enable print media emulation in headless Chrome? »
Is there a way to enable simulated device mode or emulated print media mode in headless Chrome in Linux? It can be done manually in DevTools like so:...
(1) odpowiedzi
2017-06-12 14:06 How to include EJS partials using absolute path »
I am unable to include EJS partials using absolute path like /partials/footer.ejs When i say this EJS is trying to look this file in my file system ro...
(0) odpowiedzi
2017-06-12 12:06 Node js use variable outside main function and set order of functions »
Introduction I have a three functions, each one would feed data into then next. The objective is first to retrieve data then authenticate a API key t...
(2) odpowiedzi
2017-06-12 07:06 using variable name in lodash collection »
Question is bit crazy. Is there any possibility to using variable name instead of another, clearly, consider the following code where I have to switch...
(1) odpowiedzi
2017-06-12 07:06 Why nodejs console.log different output format for the same object? »
For the following code: function F() { } // Define class fields for F F.value = [ 1, 2, 3, 4 ]; console.log('F', F); // F function F() { } console...
(1) odpowiedzi
2017-06-11 22:06 My DELETE method doesn't work from a Submit Form »
Im trying to get a DELETE request working but it concat's to this: "http://localhost:3000/users/delete?userid=593d774c734d1d02258f5315" it doesnt go t...
(0) odpowiedzi
2017-06-11 21:06 Getting JSON from nodejs in Angular »
So I couldn't find my answer anywhere. Using node I got everything from database, and I outputted it into the file. It's simple JSON data, chat logs. ...
(1) odpowiedzi
2017-06-11 20:06 nodejs with express: variables for every view »
I'm coding a web based game and I'd like to share variables within every view. Every user has created their own race and every race has lots of varia...
(1) odpowiedzi
2017-06-11 17:06 Install node package dynamically according to parameters »
I need to update the node.js package.json dynamically for example if I run npm start with param A it will install for example if I run npm start A i...
(1) odpowiedzi
2017-06-11 16:06 Mongoose: Cast to array of object failed for value [{"someKey": "someValue"}] »
I'm getting error whenever I'm trying to save into my database a document with this schema: var schemaForBooks = new Schema({ book: String, a...
(1) odpowiedzi
2017-06-11 08:06 Part of my js script not working in my ejs file »
The "if" statement in my ejs file doesn't seem to work. Here is my .ejs file: <!DOCTYPE html> <html> <head> <title>c...
(1) odpowiedzi
2017-06-10 23:06 Modify an object between two files »
I am developing a nodejs project and stuck at this problem. I have an empty object in one file and will update this object value in a secondf ile. js...
(2) odpowiedzi
2017-06-10 21:06 npm init not working and getting stuck on version »
So I am using version 8.1.0 of Node.Js and when I call npm init to set up a project it goes to version and stays there. I have tried pressing enter or...
(3) odpowiedzi
2017-06-10 21:06 Itterate over json keys with only EJS »
Using only EJS (in EJS templates in .ejs files for NodeJS), how would I iterate over keys of a JSON object (that's not an array)? I'm looking for som...
(1) odpowiedzi