I have to array objects as payload which comes from node.js, and i store it in different variables and iterate but *ngFor iterate only first loop not second so how to itterate both at same div status.component.html
<div *ngFor="let payload1 of payload1;let payload2 of payload2;">
<h4>{{payload2.username}}</h4>
<h4>{{payload1.date}}</h4>
</div>
status.component.ts
payload1 = [];
payload2 = [];
ngOnInit() {
this.statusService.getStatusDetails(this.statusObj).subscribe(
(data) => {
if(data.status == 26){
this.payload1 = data.payload[0];
this.payload2 = data.payload[1];
}
}
);
}