离子离子刷新attr拉动不起作用
问题描述:
我想将搜索窗体隐藏在init上,向下滚动显示。但是当我用拉离子复习时,它没有奏效。离子离子刷新attr拉动不起作用
代码:
<ion-refresher pulling-text="Pull to refresh..." on-refresh="doRefresh()" on-pulling="showSearch()"></ion-refresher>
答
入住这可能会帮助你...
<ion-refresher
pulling-text="Pull to refresh..."
on-refresh="loadTransactionList()"
refreshing-text="Refreshing!">
</ion-refresher>
控制器的方法是:
$scope.loadTransactionList = function(){
console.log("Refresh called");
$scope.$broadcast('scroll.refreshComplete');
}
+0
我不想刷新,我只是想在开始放下复习时做某事(显示搜索项)。 – Sanker
能否请您提供一些额外的细节,如你的控制器和任何相关的服务/工厂/等? – ankur
myApp.controller('myCtrl',function($ scope){$ scope.showSearch = function(){...}})你之前是否使用过拉? – Sanker