https://ionicframework.com/docs/api/components/infinite-scroll/InfiniteScroll/
下拉刷新上上拉加载
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<ion-list >
<ion-item text-wrap *ngFor="let item of policyNewsList" (click)="itemSelected(item)">
<h2> {{ item.news_title }}</h2>
<p>{{ item.ts | timeInterval }}</p>
</ion-item>
</ion-list>
<ion-infinite-scroll (ionInfinite)="loadMore($event)">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
ts文件
doRefresh(refresher){
refresher.complete();
}
loadMore(infiniteScroll){
infiniteScroll();
}
todo:
iOS平台上美观的下拉控件。