1. The controller gets more data
.controller('searchController', function($scope,$http){
$scope.works = [1,2,3];
$scope.doFresh = function () {
$http.get('2.php')
.success(function(newWorks){
$scope.works = newWorks;
})
.finally(function(){
$scope.$broadcast('scroll.refreshComplete');
});
};
})
2. Page layout (get data and drop down and refresh)
<ION-VIEW View-Title = "Login">
<ION-CONTENT class = "padding">
<ION-Refresher Pulling-Text = "Pulling down and refresh .." On-Refresh = "DOFRESH ()"> </Ion-Refresher>
<ION-LIST>
<ION-ITEM NG-Repeat = "Work in Works"> {{{work}}</ion-item>
</ion-list>
</ion-content>
</ion-view>
3.App.js To register the page (declare the controller of the corresponding registration page)
.state('search',{
url:"/search",
templateUrl:"templates/search.html",
controller:'searchController'
})