angular.module('push') .controller('FuncIntroListCtrl', function ($scope, FuncIntroService, ConfigService) { var devicetype = 0; if (device.platform != "Android") { devicetype = 1; } $scope.showLoadingToast(); FuncIntroService.getFuncIntroList(ConfigService.versionno,devicetype).then(function (response) { $scope.funcintrolist = response.versionList; $scope.hideLoadingToast(); }, function () { $scope.hideLoadingToast(); }); });