Questions tagged as 'angular'

2
answers

Make a map of a REST Web API response

I'm trying to do a map of a response from a Web REST API . At the moment of doing .map on the object http.get the TypeScript returns this error:    The 'map' property does not exist in the 'Observable'.ts (2339) "type...
asked by 25.12.2018 / 19:12
1
answer

Collections within documents in firebase and angular 7

I have the following code to obtain two observables in one and be able to manipulate them. public products: any; ngOnInit() { this.products = this.productService.products().snapshotChanges().map(productSnaps => { return...
asked by 24.11.2018 / 23:54
2
answers

How to insert "ngx-input-file" with "formControlName"?

With the library ngx-input-file I insert a field of type files for several images, this works correctly, the problem is when I add the formControlName tag, the option to insert images disappears. My HTML : <input-file fileAccept...
asked by 06.10.2018 / 21:52
1
answer

How do I make the browser scroll to fit a modal?

The modal I do with mdbootstrap . My Html: <!-- crear --> <button class="btn btn-primary waves-light" (click)="crearAbrir2()" mdbWavesEffect> <span class="fa fa-plus d-inline-block"></span> <...
asked by 06.10.2018 / 16:55
1
answer

Doing cast with number does not change the data type

I am learning javascript and Angular, Because at the moment of seeing the data type of this variable even specifying the data type it still comes out as string being a number this.activatedRoute.params.subscribe( params => { const idx...
asked by 05.09.2018 / 18:38
1
answer

Can you declare a component within another component?

I have several components in a folder called category , the main component is index.component , the others are create.component , > edit.component and remove.component , I would like to call them within the index.component component, so...
asked by 21.09.2018 / 17:15
1
answer

Difference between then, observable and subscribe

I have seen some codes where the functions of then , observable , and subscribe are used. I'm not sure but I think that all are doing the same, I would like to know with an example if it is possible what is the difference betw...
asked by 12.06.2018 / 17:23
1
answer

How to invert the order of a ngFor

I bring the information of a json that I generate with firebase, and I print it with a ngFor , but it always prints the arrangement from the first to the last one, I would like to do it the opposite. This is how I get the data...
asked by 03.04.2018 / 19:28
2
answers

Capture an attribute of a JSON in Angular2 - TypeScript

I have a JSON that is sent to me as an external service from this url. link I capture these data in my angle as follows: I define my file named Base64.ts that defines the shape of my data export interface Base64{ "userId":number;...
asked by 17.10.2018 / 19:05
1
answer

Error sending my project to Angular production

I'm having a small problem when trying to send my project to production with the ng build --prod command. After executing said command, it performs an exhaustive compilation (AOT) compared to the execution of the ng serve command t...
asked by 17.07.2018 / 18:21