【发布时间】:2020-08-02 08:51:01
【问题描述】:
<div class="container">
<div class="row">
<div class="col-sm">
One of three columns
</div>
<div class="col-sm">
One of three columns
</div>
<div class="col-sm">
One of three columns
</div>
</div>
</div>
我只想在我的 Angular 应用程序中将卡片显示为特定的网格
连续 3 张牌,然后在下一行
<div class="container" *ngFor="let item of post">
<div class="row">
<div class="col-sm">
<h2>{{item.title}}</h2>
</div>
</div>
</div>
结果是这样的
它只是将那些对象数据作为行获取 有什么方法可以让我们遍历该网格并相应地显示数据
Note:I have tried Angular material Grid
我尝试过使用 Flexlayout 仍然没有成功
我只需要一种可能的方式来显示这样的数据
【问题讨论】:
标签: angular typescript twitter-bootstrap angular-material angular-bootstrap