Iterate two arrays in *ngFor— IONIC2/Angular2

前端 未结 5 1270
遥遥无期
遥遥无期 2020-12-30 13:30

I have stored values in two arrays to iterate in a single ion-list . Billerstatusstate and Billerstatusnamelst are the two arrays.

I have tried the foll

5条回答
  •  长发绾君心
    2020-12-30 13:51

    I have followed this approach.. I have stored values in single array instead of two arrays as it comes from a single source.

     this.Billerstatusnamelst.push({name:"testname",Status:"Failure"});
    

    In HTML part

     
    
      {{bil.name}} 
    
    
    

    Its worked for me..

提交回复
热议问题