-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