效果如下:
(1)页面往下拉做刷新页面操作
(2)页面往上滑到底部时,加载更多数据## 标题
html
<ons-page>
<ons-toolbar>
<div class="left"></div>
<div class="center">上拉加载下拉更新</div>
<div class="right"></div>
</ons-toolbar>
<div class="background"></div>
<div class="content" #scrollContent (scroll)="scroll()">
<!--下拉更新 S-->
<ons-pull-hook height="35px" threshold-height="128px" (changestate)="onChangeState($event)" (action)="onAction($event)">
{
{pullMessage}}
</ons-pull-hook>
<!--下拉更新 S-->
<div class="scroll-cnt">
<div class="lists" *ngFor='let i of listsInit'>
<img src="{
{i.img}}" />
<p>