<ion-header>
<ion-toolbar >
<ion-title >消息</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="page2">
<ion-infinite-scroll (ionInfinite)="doOnfinite($event)" #onFinite>
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data"></ion-infinite-scroll-content>
</ion-infinite-scroll>
<ion-list>
<ion-item-sliding *ngFor="let item of items">
<ion-item (click)="itemclick(item)">
<!-- <button fab fab-right block full class="rightBtn">
<ion-icon name="add" ></ion-icon>
</button>
-->
<ion-avatar item-left>
<img src="../images/{{item.img}}.jpg"></ion-avatar>
<h2>{{item.name}}</h2>
<p>{{item.note}}</p>
</ion-item>
<ion-item-options>
<button (click)="removeContact(item)">
<ion-icon name='trash'></ion-icon>
删除
</button>
</ion-item-options>
</ion-item-sliding>
</ion-list>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>