-1
我开发了离子幻灯片和呼叫网络服务,现在当第一个网络服务完成离子幻灯片并呼叫第二个网络服务时,我必须调用另一个网络服务。在离子幻灯片上拨打设置的网络服务
.controller('LandingCtrl', function ($scope, $state,ItemService,$http, $ionicPopup,$ionicSlideBoxDelegate,$ionicLoading,$filter) {
$http.get("http://rss.xyz.com/calen/detail_page.asp?month=1&year=2016")
.success(function(response) {
$scope.names = response.Date;
console.log(JSON.stringify(response));
setTimeout(function() {
$scope.date = $filter("date")(Date.now(), 'dd');
console.log($scope.date)
$ionicSlideBoxDelegate.slide($scope.date-1);
$ionicSlideBoxDelegate.update();
$scope.$apply();
});
$ionicLoading.hide();
})
};
上面的代码是第一个web服务,当离子滑动完成第一个web服务时,它称第二个web服务带有相同的离子幻灯片。
第二Web服务是 “http://rss.xyz.com/calen/detail_page.asp?month=2&year=2016”
如何显示上ionic.I月历试过,但它不工作 – divakar
SRY我不知道这张幻灯片用于图像。 –
不是图像我问像用户交互每月日历 – divakar