如何在 Ionic Framework 中使用 ng-repeat 创建 2 列网格系统?
How to create 2 column grid system with ng-repeat in Ionic Framework?
我是 Ionic 框架的新手。我必须使用 ng-repeat 在 2 列网格系统中显示产品。如何在每 2 个产品后实施 <ion-row>
。
这是在 ng-repeat 中使用 2 列网格的方法
<ion-grid fixed>
<ion-row>
<ion-col size="6" *ngFor="let item of items">{{item}}</ion-col>
</ion-row>
</ion-grid>
我是 Ionic 框架的新手。我必须使用 ng-repeat 在 2 列网格系统中显示产品。如何在每 2 个产品后实施 <ion-row>
。
这是在 ng-repeat 中使用 2 列网格的方法
<ion-grid fixed>
<ion-row>
<ion-col size="6" *ngFor="let item of items">{{item}}</ion-col>
</ion-row>
</ion-grid>