Reputation: 167
I have a json file to simulate a request to an API I am using httpClient in my service I return it
service
this is my home component
this is my html home component
but I am doing something wrong because I can print the data but, one of the element is render empty this is the result I have
How I can prevent this I am new on this thanks so much in advance.
Upvotes: 2
Views: 909
Reputation: 6527
In your home component template; it looks like you are rendering a component called app-card
just before your *ngFor
loop.
Could that be the empty card.
<div class="col-md-4>
<app-card></app-card>
</div>
Upvotes: 3