I’m building a shopping-cart library for ionic and have a an ion-side-menu with that contains a directive contains an ng-repeated div.
For some reason, I can’t get it to scroll:
Here is my code:
<ion-side-menus>
<ion-side-menu-content>
<!-- SIDE MENU CONTENT HEADER -->
<ion-header-bar class="bar-dark">
<button class="button icon ion-arrow-left-a" ng-click='back()'></button>
<h1 class="title">Ionic Shopping Checkout</h1>
<button class='button icon ion-bag' ng-click='toggleRightSideMenu()'></button>
</ion-header-bar>
<!-- SIDE MENU CONTENT -->
<ion-content>
<ion-purchase></ion-purchase>
</ion-content>
<!-- SIDE MENU CONTENT FOOTER -->
<ion-purchase-footer></ion-purchase-footer>
</ion-side-menu-content>
<ion-side-menu side="right">
<!-- SIDE MENU RIGHT CONTENT HEADER -->
<ion-header-bar class="bar-dark">
<button class="button icon ion-arrow-left-a" ng-click='back()'></button>
<h1 class="title">Ionic Shopping Cart</h1>
<button class='button icon ion-bag' ng-click='toggleRightSideMenu()'></button>
</ion-header-bar>
<!-- SIDE MENU RIGHT CONTENT -->
<ion-cart products='products'></ion-cart>
<!-- SIDE MENU RIGHT CONTENT FOOTER -->
<ion-purchase-footer></ion-purchase-footer>
</ion-side-menu>
</ion-side-menus>
Here is the code within the ion-cart directive :
<div class='card product-card' ng-repeat='product in products track by $index'>
<div class='item item-thumbnail-right product-item'>
<img ng-src='{{product.image}}' class='product-image'>
<h3 class='product-title'>{{product.title}}</h3>
<p class='product-description'>{{product.description}}</p>
<i class='icon ion-plus-round icon-plus-round' ng-click='addProduct(product)'></i>
<span class='product-quantity'>{{product.quantity}}</span>
<i class='icon ion-minus-round icon-minus-round' ng-click='removeProduct(product)'></i>
<span class='product-price'>${{product.price}}</span>
</div>
</div>
<div>
Any thoughts as to how to get it to scroll would be awesome!
Thanks!