Hi All,
I cannot seem to get ion-infinite-scroll to fire. Any ideas what I am doing incorrectly?
Thanks
html
<ion-header> <ion-navbar> <button menuToggle> <ion-icon name="menu"></ion-icon> </button> <ion-title>Search</ion-title> </ion-navbar> </ion-header>
<ion-content padding class="search" id="search-content">
<label class="item item-input"> <i class="icon ion-search placeholder-icon"></i> <input type="search" placeholder="Search"> </label>
<ion-list [virtualScroll]="employeeModels"> <ion-item-sliding *virtualItem="let item"> <ion-item> {{ formatEmployee(item) }} <ion-avatar item-left><img [src]="item.avatar64 ? item.avatar64 : 'images/blank-profile-picture.png'"></ion-avatar> <h2>{{item.firstName}}</h2> <p>{{item.categories[0].name}} {{item.subCategories[0].name}} {{item.time}}</p> </ion-item>
<ion-item-options> <button primary (click)="alert('todo')"><ion-icon name="text"></ion-icon>Message</button> <button light (click)="alert('todo')"><ion-icon class="ion-ios-heart"></ion-icon>Favourite</button> </ion-item-options>
</ion-item-sliding> </ion-list>
<ion-infinite-scroll on-infinite="loadMoreData()" distance="1%"> </ion-infinite-scroll>
<!--<ion-infinite-scroll ng-if="moreDataCanBeLoaded()" icon="ion-loading-c" on-infinite="loadMoreData()"> </ion-infinite-scroll>-->
</ion-content>
ts
loadMoreData() { console.log('loadMoreData'); }
moreDataCanBeLoaded() { console.log('moreDataCanBeLoaded'); }