Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49164

Colection-repeat displays list incorrectly

$
0
0

@qbeinnovation wrote:

So I have list that when I use ng-repeat to fill it, it displays properly and fills out the scrollable list as expected.
Howerver, if I take the below code and change it to collection-repeat, it displays the items as a single list-item high stack, one behind the other:

<ion-list id="productList">
<ion-item class="productItem animated fadeIn" ng-click="setProduct('', 'alllines')" style="background-image: url(img/lines/bars/alllines.jpg);">All Products</ion-item>
<ion-item ng-repeat="product in products"
class="productItem animated fadeInLeft"
ng-class="{fadeInRight: $index % 2 == 0}"
ng-click="setProduct('{{product.name}}', '{{product.image}}')"
style="background-image: url(img/lines/bars/{{product.image}}.jpg);">{{product.name}}</ion-item>
</ion-list>

Any ideas on where I've gone wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>