Questions tagged as 'nodejs'

1
answer

GroupBy on nodejs mysql

I do not know how to do the query, being more specific I do not know how to put the group by in my query, here goes my code objBD.query('SELECT u.ID_U, u.nombre, t.ID_T,t.tiempo, t.iteracion from USUARIO u INNER JOIN TIEMPOS t ON u.ID_U=t...
asked by 05.11.2016 / 19:39
1
answer

Ionic client to the API with NodeJS

I have a problem, it's an API with NodeJS and the client with Ionic (code available here as well). // SERVICES.JS angular.module('app.services', []) .factory('loginService', function($http){ return{ print: function() {...
asked by 15.01.2017 / 16:04
2
answers

Error starting the NodeJS server

I am starting to develop in the framework of AngularJS in a self-taught way and following a tutorial says to download or clone the repository of git which I already downloaded, following the tutorial comes a part where I have to install NPM...
asked by 06.10.2016 / 00:30
1
answer

get () method of collections.js in nodejs does not work

I made this code function reestructurar(dir,fileA){ var seto = new Set([]); read('${dir}/training/${fileA}', contentT => { for (var i = 0, chunki = contentT.split('\r\n'), leni =chunki.length; i < leni; i++){ if(seto...
asked by 10.10.2016 / 17:02
1
answer

ajax send variable undefined to app.js (using nodejs)

this is my code, to send the variable "copying", but only shows by undefined console var texto="no existe 1 rayo zapato zanahorea karaoke Whisky software wikipedia jinete japon jabon facil frio rayo yogur habil hablar galleta gigante genti...
asked by 17.09.2016 / 08:10
2
answers

Typescript and ES6 import

I am trying to transpile a file with extension .ts to ES6 but it does not work and out of that nor does it throw me some typescript error. The problem occurs when I use the import of ES6 and do not require. Note: I have updated node. I app...
asked by 06.09.2016 / 05:38
1
answer

How to show the result of a javascript operation to jade

The goal is to obtain the data of an operation javascript and show the result on the page, the code is as follows: doctype html html head title Mi Pagina script(type="text/javascript"). var resultado = localStorage.getItem("val...
asked by 06.07.2016 / 19:00
1
answer

I can not get the variable of a module in the app.js file (Node.js)

I want to send a very simple module variable from svm (machine learning) to server app.js , I'm working with NodeJS . This is my code: 'use strict'; var so = require('stringify-object'); var svm = require('../lib'); var x...
asked by 15.09.2016 / 06:45
1
answer

Find is not a function

I'm working with node js and in the model I get this error    TypeError: $ .find is not a function I use jquery to do the find models.Account.authenticate = function(login, password, cb){ var hashpass = common.hash(password, 'user.sal...
asked by 21.07.2016 / 20:48
1
answer

AngularJS with Karma, Node.js and Jasmine

Testing AngularJs with Karma, Node.js and Jasmine I get this error running scripts / test.bat on console. Chrome 48.0.2564 (Windows 7 0.0.0) ERROR Uncaught TypeError: Cannot read property 'module' of undefined What does it mean? I'm usin...
asked by 04.03.2016 / 03:39