Questions tagged as 'angular'

1
answer

Angular Service Calls5

I have some doubts and some problems. I have several components with the same function: Componente1: public headers: Object; public params: Object; sacarDatos(){ const url='assets/dato1.json'; this.service.sacarDatos(u...
asked by 25.06.2018 / 10:10
2
answers

consume data from a JSON file in angular2 +

I need to get data from an external file, for example leave 2 service paths in an external file inside the assets folder, then from the servicio.ts get those URLs from the external file. is it possible to obtain data from an extern...
asked by 11.05.2018 / 04:51
1
answer

Validatior Async Angular 5 does not show me messages

Hi, I am new at angular I have version 5 and I am trying to do a validation to verify if a data is registered in the database, the details is that when the validation is executed, the error message is not interpreted. it is a problem of how the...
asked by 09.05.2018 / 03:04
1
answer

Use Translate in Angular2 inside the .ts file

I've always done the translate in the html, but now I have to do it in .ts and it returns an [object object] in the html and I do not know what I'm doing wrong. headerName: translate.get("Name"); I've also tried with: translate.get...
asked by 26.04.2018 / 12:18
1
answer

Get the name of a class in Angular?

I'm working with Angular 5 . I am passing an object to a component, with the decorator @Input (): @Input() x: any; This object can be of class Xxx, Yyy or Zzz. Can I know within the component if the object received is of one kind o...
asked by 21.05.2018 / 11:09
1
answer

Error reading undefined property

When I try to do ng build --prod Displays the following error:    92% chunk asset optimizationC: \ Users \ IvanTadeo \ Documents \ petstar \ front-end \ node_modules \ clean-css \ lib \ reader \ input-source-map-tracker.js: 37 if (origin...
asked by 11.04.2018 / 02:00
1
answer

Angular 5 delete sibling components when starting

I have the following structure in parent component app.component <app-header></app-header> <router-outlet></router-outlet> <app-footer></app-footer> in router-outlet the dynamic components are loaded (...
asked by 08.05.2018 / 16:19
1
answer

Assign variable in CellClassRules AgGrid Angular2

I have the following code that works but it has the problem that I have to define 'green' about 20 times, I want to call a function and in that function if it fulfills it that returns the 'green' or in the future another different chain....
asked by 03.05.2018 / 12:50
1
answer

Find an Object of an Http Array with an Angular pipe2

I want to make an http request to a Json and this returns an array of comments, from that Array I want to directly get the comments that have an Id that matches the one that happened, all directly: export class DetailUserComponent implements O...
asked by 12.04.2018 / 09:10
1
answer

Angular 2+ Google Maps component does not show dynamic dots

I'm trying to implement a map In angular 2 with the Google maps component but I have problems wanting to show several points dynamically I attached the code (simulating more or less what I want to do) first I create an array with the poin...
asked by 27.11.2017 / 16:48