I keep getting this error on one of my collection repeats:
This is on 1.0.0-rc.3. I never noticed it on 1.0.0-rc.2
Error: collection-repeat tried to compute the width of repeated elements “cardin in data | orderBy:‘Timestamp’:decending | filter:filter”, but was unable to. Please provide the “item-width” attribute. collection-repeat - Directive in module ionic - Ionic Framework
at g (ionic.bundle.min.js:383)
at ionic.bundle.min.js:383
at l.$get.l.$digest (ionic.bundle.min.js:155)
at l.$get.l.$apply (ionic.bundle.min.js:157)
at ionic.bundle.min.js:121
It’s very basic.
<a class="item" ui-sref="somewhere" collection-repeat="cardin in data | orderBy:'Timestamp':decending | filter:filter" item-height="78px" item-width="100%">
My other collection repeats work fine. This one however, is located within a modal. Not sure if this is why it’s wigging out or not. Can you use collection-repeat inside a modal that’s hidden? When the modal is shown, it works fine.
Any ideas?
Thanks!