Parent Component
You can use Simply
For Example I have parent Component like this
<div *ngFor="let data of datas|slice:0:2">
<app-child [data]="data"></app-child>
</div>
TS
I have Dummy array
datas = [
{id: 1, name: 'ABC'},
{id: 2, name: 'EFG'}
];
Child Component
now you can use this array to child component like this
HTML
<ul>
<li>{{data.id}}</li>
<li>{{data.name}}</li>
</ul>
TS
// This will bring data from parent component and this is used for sharing data between parent context and child directives or components
@Input() data;
ngOnInit() {
console.log('data => ', this.data);
}
My Example you can check it Here
data