angularjs-ng-repeat - 在angular js中使用bootstrap和ng重复对元素进行排序
问题描述
我正在尝试使用 ng repeat 在 angularjs 中对我的数据进行排序,其中所有数据开始填充第一列,如果有更多则进入第二列。(如表格 A)
像这样:
form A form B
0 3 and not like this 0 1
1 4 2 3
2 5 4 5
in this order.
help???
this is the code that i tried: note that this displays the products giving them col-xs-6 (like form B)which is not what i want(form A)
<div class="container">
<div class="row">
<div ng-repeat="product in products">
<div>
<div >
<div class="col-xs-6">
{{product}}
</div>
</div>
</div>
</div>
</div>
</div>
解决方案
推荐阅读
- java - 我想删除字符串“07:08:19PM”中的“: , PM”。我想要 07 08 19 的结果
- android - 如何绑定 CallScreeningService?
- java - 使用 java 加密文件,但从命令行(终端)解密文件
- docker - Docker:crontab -l 和 crontab -e 不返回任何内容
- angular - 如何使用 FormControl 制作 Ng-5 滑块的多个实例并在分页期间跟踪?
- google-bigquery - Bigquery 将表的一半附加到另一个表
- nlp - GloVe 词向量余弦相似度 - “盟友”比“朋友”更接近“强大”
- linux-kernel - 如何在启动期间调试 /sbin/init 上的内核崩溃?
- jquery - 如何将可编辑的选择(下拉)插件值复制到jquery中的文本框
- android - 如何编写简单的测试用例以在 android 中测试 Login Api?