? Angular2 + Laravel with Real time & WebSockets

I built an app and i'm planning to make a real time battle with Angular 2 and laravel. For example, you hit the "attack" button, and your opponent see his life going down in real time.My app built wit
 ? How can I use Express to render dynamic files?

I'm looking to use Express to render raw strings as HTML, with the ability to reference static files in a specified directory (CSS, images, and other resources).I've done a lot of research, but I have
 ? In what scope are module variables stored in node.js?

When I do this in my node.js module:var abc = '123';Where does it go? And by this I mean: in the browser it goes in window.abc (if not executed in a function or otherwise)If I execute this:abc = '123'
 ? node.js - can I assign a complete method to a variable and then call that method with a . notation

I am wondering if it is possible to assign a method to a variable in node.js script and then be able to call that method via a . notation (something similar to what require does, except I am not readi
 ? Node.js - inheriting from EventEmitter

I see this pattern in quite a few Node.js libraries:Master.prototype.__proto__ = EventEmitter.prototype;(source here)Can someone please explain to me with an example, why this is such a common pattern
 ? TypeError: Cannot use 'in' operator to search for '$__firebase' in undefined

I'm getting an error importing the Firebase npm module with an app hosted by OpenShift.The following line firebase = require('firebase/app'),produces the following output in the log fileTypeError: Can
 ? TypeError: Cannot use 'in' operator to search for '$__firebase' in undefined

I'm getting an error importing the Firebase npm module with an app hosted by OpenShift.The following line firebase = require('firebase/app'),produces the following output in the log fileTypeError: Can
 ? TypeError: Cannot use 'in' operator to search for '$__firebase' in undefined

I'm getting an error importing the Firebase npm module with an app hosted by OpenShift.The following line firebase = require('firebase/app'),produces the following output in the log fileTypeError: Can
 ? TypeError: Cannot use 'in' operator to search for '$__firebase' in undefined

I'm getting an error importing the Firebase npm module with an app hosted by OpenShift.The following line firebase = require('firebase/app'),produces the following output in the log fileTypeError: Can
 ? Why does a new object constructor overwrite a previous object?

I used the following question as a guide for my application's Device object: Node.js - use of module.exports as a constructor, but it appears that the first object created is overwritten by a subseque
 ? How to create a Node JS constructor to initialize a callback function

I am new to Node JS + Javascript. I have a module where I expect it to work as a constructor and initialize some data. And expect those data(array) to be available when I require it from another modul
 ? Using node, why is code so much faster with "use strict"?

I never knew use strict to speed up runtime, however a simple use strict is making my benchmark substantially faster, and the slower one grossly slower (over twice as slow). What's going on?//// RUN W
 ? nodejs process.exit() prevents function from executing properly

I am writing my first NodeJs script. Below is some code I have set up to test a database connection.When I include process.exit() at the very end of the script, nothing is logged to the console - how
 ? Node.js: Calling one exported function from another in the same module

I am writing a node.js module that exports two functions and I want to call one function from the other but I see an undefined reference error. Is there a pattern to do this? Do I just make a private
 ? Why would faker produce duplicate data?

I'm using Faker in order to seed a database, I'm doing this using faker methods and lodash#random.Data generation is inside a loop, but on every execution is producing whole duplicates, how can I avoi
 ? throw error whe non declared variable is referenced

This question already has an answer here: Force JavaScript exception/error when reading an undefined object property? 5 answers

Page 1 of 1264  |  Show More Pages:  Top Prev Next Last