When i try to use double ion-refresher, android gives an an error but ios doesn’t
ERROR: Error: Refresher must be immediate child of ion-content or ion-scroll
CODE:
<ion-content class="stable-bg has-subheader" ion-sticky ion-sticky-class="dark">
<div ng-switch="active">
<div ng-switch-when="users" class="list">
<ion-refresher on-refresh="getUserData()" pulling-icon="ion-chevron-up"></ion-refresher>
<item-tweet data="u" ng-repeat="u in userposts track by $index"></item-tweet>
</div>
<div ng-switch-when="restaurants" class="list">
<ion-refresher on-refresh="getRestaurantData()" pulling-icon="ion-chevron-up"></ion-refresher>
<item-tweet data="r" type="restaurant" ng-repeat="r in restaurantposts track by $index"></item-tweet>
</div>
</div>
</ion-content>
Thanks you for your help
EDIT: I fixed myself.
<ion-refresher on-refresh="getAllData()" pulling-icon="ion-chevron-up"></ion-refresher>
$scope.getAllData = function() {
if ($scope.active == 'first') {
$scope.getFirstData();
console.log("FirstData")
} else {
$scope.getSecondData();
console.log("SecondData")
}
}