0
I am bringing the data from the server through an NGFOR with pipe async but I would like to show a gif of loading until the data arrives, it takes about 3 seconds for the data to appear on the screen and I would like to show a gif of loading...
<table cellpadding="5">
<tbody>
<tr *ngFor="let contato of contatos | async">
<td><img src="../../assets/{{contato.key}}.png" alt="facebook"></td>
<td class="redes">{{contato.data}}</td>
</tr>
</tbody>
</table>
But it’s not just putting one
if
in both td?!– LeAndrade
I tried to do it and I couldn’t, it has to help me with the code ?
– user8465
Put it there the way you tried
– LeAndrade
I tried to make a Ngif in the variable of the is if it was different from null would show the TD but it didn’t work
– user8465
Edit the answer and put in the code of the question there friend to see how you did!
– LeAndrade
The way I did didn’t work out, buddy... what am I posting ?
– user8465
Well, because it’s easier to see what you’ve tried, and try to correct than to speculate as you did.
– LeAndrade
https://ultimatecourses.com/blog/angular-ngif-async-pipe
– Eduardo Vargas