How to apply variable when Ionic Loading show?

Hi there! i have a problem need help.
function homeCtrl($scope, $ionicLoading) {
var home = this;
home.progressDownload = 0;

$ionicLoading.show({
template: ‘
Download…’ + home.progressDownload + ‘%’,
});

for (i = 0; i <=100; i++) {
home.progressDownload += i;
}
}

if bind in view html: “<\h4>Loading… {{home.progressDownload}}</h4>”. it show that 1-100%; But on Ionic Loading, it not working 1-100%. Why? please help me!!!

hi

you can set var home to $scope.home
when ever its changes it will display in the view

1 Like

thank u so much. i can try