title: How to iterate two array at same time using ngFor in angular?
body: <p>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</p>
  
  <pre><code>&lt;div *ngFor="let payload1 of payload1;let payload2 of payload2;"&gt;
    &lt;h4&gt;{{payload2.username}}&lt;/h4&gt;
    &lt;h4&gt;{{payload1.date}}&lt;/h4&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>status.component.ts</p>
  
  <pre><code>payload1 = [];
  payload2 = [];
  
  ngOnInit() {
    this.statusService.getStatusDetails(this.statusObj).subscribe(
      (data) =&gt; {
        if(data.status == 26){
          this.payload1 = data.payload[0];
          this.payload2 = data.payload[1];
        }
      }
   );
  }
  </code></pre>