2 record per line ngFor ionic


#1

Hi… I have an array:

this.array_demo = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8]; (just for exemple)

I want use ngFor to display 2 itens per line…

I tooth in user ngIf , but i get an error.

expected result
0 1
2 3
4 5
6 7
8

or

 <ion-card>
      <ion-row>
        <ion-col>
          0
        </ion-col>
        <ion-col>
          1
        </ion-col>
      </ion-row>
      <ion-row>
        <ion-col>
          2
        </ion-col>
        <ion-col>
          3
        </ion-col>
      </ion-row>
      <ion-row>
        <ion-col>
          4
        </ion-col>
        <ion-col>
          5
        </ion-col>
      </ion-row>
      <ion-row>
        <ion-col>
          6
        </ion-col>
        <ion-col>
          7
        </ion-col>
      </ion-row>
      <ion-row>
        <ion-col>
          8
        </ion-col>
        <ion-col>
          
        </ion-col>
      </ion-row>
    </ion-card>

how can I go to next record inside of the loop?