Questions tagged as 'angular'

1
answer

ion-card horizontal

Is there any way for the ion-card to grow horizontally and not vertically? It is populated by data coming from the api <ion-card *ngFor="let filmes of lista_filmes_popular"> <img [src]="'https://image.tmdb.org/t/p/w500/' +...
asked by 30.10.2018 / 20:37
1
answer

Sub folder configuration in htaccess

Well I have a hosting with the following structure: index.html .htaccess app site Well, inside the app folder I have an application compiled in Angular 7.0 and inside the site folder I also have a site made in Angular 7.0. Well for Angul...
asked by 21.11.2018 / 19:19
1
answer

src iframe error

My code: <div class="col-md-3 col-sm-4 col-xs-6" *ngFor="let g of gag"> <div *ngIf="g.tipo == 2"> <iframe width="280" height="162" [src]="g.caminho" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen >...
asked by 29.10.2018 / 07:04
1
answer

Template parse errors (Angular CLI)

I'm studying Angular by doc , but when I arrived in Add HeroService.getHero() , the application gave refresh and presented the following error :    compiler.js: 2547 Uncaught Error: Template parse errors:   Can not bind to 'hero' since...
asked by 09.11.2018 / 00:01
1
answer

Angular Migration 5 to 6 rxjs

I'm trying to migrate a new project from Angular 5 to 6, but I'm having some difficulty in the way it changed the functions of rxjs, I'm posting below how I did it in Angular 5 and it worked the way I wanted it, a help for example doing that sam...
asked by 10.11.2018 / 23:55
2
answers

Function that runs for and exits according to condition

I have an array called listAttributes: any [] = []; and I need to remove the rows that match my index. If I give a console log this way, it shows me exactly which elements should be excluded: removeAtributo(index: number){ for(let i=...
asked by 08.11.2018 / 20:30
1
answer

Can not read property 'id' of undefined

I'm getting an error while entering the bug-details route, before even clicking the routerlink to try to access edit-bug, which is my intention. The error is:    ERROR TypeError: Can not read property 'id' of undefined       at Object.eval [a...
asked by 29.11.2018 / 19:15
1
answer

How to get data from an observable firebase?

I have a list that loads from the firebase. This list has 3 attributes, value, id, and date. But I'm going to need to capture just one of these attributes and mount an array with them, so I can do a math calculation, so I need to extract the pro...
asked by 05.11.2018 / 03:22
1
answer

How to manipulate DIV with angle 2

I have 2 DIVs and would like to manipulate them with buttons. I have 2 DIVs. When one appears the other is hidden, vice versa. Can someone help me ? my version of Angular is 5.    Function1    Function2                 content -2     
asked by 24.09.2018 / 23:00
1
answer

How to make a function wait for another function that has a subscribe with observable inside?

Next, I have a function that generates a PDF, this function takes a mounted array and assembles a page. After this it requests the next page to the backend through a function with a subscribe. My problem is that the function does not wait, th...
asked by 04.10.2018 / 21:36