【发布时间】:2015-05-20 03:45:52
【问题描述】:
我在下面使用了带有 md-grid-tile 的 collection-repeat,
<md-grid-tile collection-repeat="record in records" md-rowspan="1"
md-colspan="1" md-colspan-sm="1" >
<!--- Rest of code --->
</md-grid-tile>
但是当我运行它时,它会在控制台中显示这样的错误。
错误:collection-repeat 尝试计算“记录中记录”重复元素的高度,但无法计算。请提供“item-height”属性
有没有办法解决这个问题??
【问题讨论】:
-
好吧,这个错误看起来很明确和具体。你试过设置
item-height吗? -
您应该阅读docs 的
collection-repeat。 -
是的,我没有设置,因为我需要,它从收集重复中获取高度和宽度本身
标签: angularjs angularjs-ng-repeat ionic-framework angular-material