在 angular js & bootstrap 中进度条完全加载后如何提醒 a ?

How do I alert a after the progress bar has completely loaded in angular js & bootstrap ?

我想在进度条完全加载后加载图像(顺序)。我有这个片段。请帮忙!

<progressbar class="progress-striped active" animate="true" max="100" value="progressValue2" type="success"><i><span count-to="{{countTo}}" duration="1" count-from="{{countFrom}}"></span> / 100</i></progressbar>

这是在我的控制器中。 var amt = 100; $scope.countTo = amt; $scope.countFrom = 0; $timeout(function(){ $scope.progressValue2 = amt; }, 200); // 栏完全加载后,我想做点什么..

如果我没理解错,你应该使用超时返回的promise:

$timeout(function(){
    $scope.progressValue2 = amt;
}, 200).then(function(){
    $scope.showImage = true;
});

在您的模板中:

<img ng-if="showImage" ng-src="" ... />