you are using javascript's index here
<app-post *ngFor="let post of posts; index as i"

So it is deciding for you what the value of i is. In this case since, as 
Sander has indicated, *Js arrays are zero indexed *it will start at zero 
and not use your lovelevel

change it to 

<app-post *ngFor="let post of posts;"

[PostLove]="post.lovelevel">

Some good reads here 
https://angular.io/api/common/NgForOf

On Thursday, January 17, 2019 at 11:12:11 AM UTC-8, Ben Ysil wrote:
>
>
> Yes but I never used index position. Just Ngfor on an array . So why it's 
> a get a first item blank ? blank item didn't exist in the array.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to