Questions tagged as 'nodejs'

2
answers

Run Angular on AWS and link to a domain

I'm trying to raise an instance in AWS with Angular but I could not. I created my instance in EC2, with their respective groups and routing rules (including ports 22, 80, 443 and 4200) I created my elasticIP With my Key Pair I have...
asked by 13.12.2018 / 00:27
1
answer

NgForm problem when inserting an input of type date, the entire form is deformed

Hello, I have the following form: <form #formulario="ngForm" action="" (ngSubmit)="insertarEmpleado()" ngForm> <div class="example-container"> <mat-form-field hintLabel=""> <input matInput #input maxle...
asked by 03.12.2018 / 12:42
1
answer

Error connecting to MongoDB

I try to make a connection to MongoDB using typescript but I get the following error:     
asked by 14.11.2018 / 04:18
2
answers

Send a variable of Javascript to Node.JS

I have the following in Node.JS: app.get('/datos/', (req, res)=>{ var dato1 = "Hola"; console.log(dato1) }); In my Javascript file, I have a variable that says var dato2="Mundo" . I would like to know how I can pass that value...
asked by 08.11.2018 / 01:01
2
answers

Question about MongoDB and NodeJS

I'm training MongoDB and NodeJS, although I have some doubts. In my APP file I defined the following Here I put my code (do not pay attention to the XD notes) //esta variable almacena las funciones del paquete express, el cuál es el núcleo...
asked by 01.08.2016 / 02:13
1
answer

Validate array within a JSON in node.js

I need to validate the fields within the "Extras" array, they are really "Number" and "Country_code", I also need to be able to obtain the values. HELP PLEASE !! "Persona": [ { "Nombre":"Maria", "Apellido":"Vargaz",...
asked by 01.09.2018 / 17:36
1
answer

Upload data and images of a form with Node.js - form / data

I am developing a web page in which in one of its sections the user must register a product (DATA) and upload an image (optional) concerning it. When you click on the "Save" button you should upload the image to the server, register the data in...
asked by 24.10.2018 / 04:20
2
answers

which is what I download at https://github.com/angular/angular-cli

I want to start working with angular js, I have installed Node.js and when I run the command npm install -g @ angular / cli the execution gives me error which is the cause of this problem, embusqueda of a one solution I found that I can download...
asked by 06.06.2018 / 22:21
1
answer

How to make reference in package.json to another module of my project?

Hello my application created with node.js I have several modules: the database, the Api, customer service, etc ... Well, in some I have to refer to another in the package.json file but I do not know if I'm doing it right, because when I start li...
asked by 23.05.2018 / 15:44
1
answer

receive parameters by url nodejs

I would like to be able to receive some parameter by url with nodejs I have tried it this way: router.get('/events:id', (req,res) => { var choice = req.params.id; }) However I get this error:     
asked by 21.04.2018 / 04:17