I am developing android app using Ionic framework. I used a <ion-refresher>
tag to load the contents dynamically when the user pulls down the page. But it didn't work.
<ion-refresher
pulling-text="Pull to refresh..."
on-refresh="doRefresh">
</ion-refresher>
My controller code is blow:
$scope.doRefresh = function() {
$http.get('http://localhost/test/gksfapp_backend.php?action=an').then(function(msg){
//never executed.
$scope.items=msg.data;
})
.finally(function() {
// Stop the ion-refresher from spinning
$scope.$broadcast('scroll.refreshComplete');
});
How can I make this work?