Questions tagged as 'angular'

0
answers

AngularFireStorage error [object object]

when declaring the variable private in the constructor, this throws me the error and does not load the view to me import { Component } from '@angular/core'; import {incidenciasService} from '../service/incidencias.service'; import { AngularFir...
asked by 26.09.2018 / 21:26
2
answers

Pass angular project to production

I'm trying to export the project to production, but it only works when I put it in the root of the server. If, for example, I put it in localhost/dist it does not work anymore. I have tried to modify the route with the command ng...
asked by 22.10.2018 / 13:21
1
answer

Call a method in Angular 6

I'm starting with Angular 6, I need to call a method in HTML but I do not know how to do it. The only way I have found is to assign it to an event but what I want is for the method to be executed only without the need to click on a button or som...
asked by 09.09.2018 / 23:55
2
answers

Error Can not read property 'message' of undefined in Angular 5

I have a problem with angle 5. I have found some similar question but I have not managed to solve anything. The thing is that I have an http service that I am consuming from angular with a get request, which returns a Json. What happens to me is...
asked by 25.04.2018 / 13:05
1
answer

How to look up various data in an angularjs property by means of Checkbox?

I have two checkboxes, if one is selected, he brings me the men and if I select the other he brings me the women, but I want an option where I can select the two and bring me both. I want to do that with other fields. <body> <div...
asked by 04.10.2018 / 23:47
0
answers

Get coordinates using PDF.js help

I'm using the ng2-pdf-viewer component of VadimDez / ng2-pdf-viewer and wanted to know of some mechanism to be able to get the coordinates of the document already rendered on screen when moving the cursor     
asked by 29.08.2018 / 14:23
1
answer

Is there an equivalent of Web.Config in Angular 4/5?

I have just started developing applications in Angular, for now the connection path with the BackEnd (for example: 192.169.1.114:8080) I have the app.module.ts. But I would like that path to be in some kind of configuration file type Web.Config...
asked by 04.09.2018 / 17:45
1
answer

Two attributes do not persist in a JSON

I'm doing a project with Angular 6 and Cloud Firestore, which consists of adding products. I have defined an interface with the attributes that must be carried, and when I receive them from a form, I manage them with the service: addProduct(id...
asked by 13.08.2018 / 11:24
1
answer

Filter items from FormArray

I have a FormArray that is made up of FormGroup with the following structure: let formGroup: FormGroup = this.fb.group({ checked: this.fb.control(false), id_lista: this.fb.control(element.id_lista[0]), nombre: this.fb...
asked by 13.08.2018 / 20:38
1
answer

How to get a response from a php to angular

I have a problem that when I run my php file, a json returns to me and I want this answer to be angular. But he does not read it to me. This would be the php file: <?php try{ $conexion = new PDO('mysql:host=localhost;dbname=prueba','root',...
asked by 31.08.2018 / 21:17