I have a bootstrap modal which I want to close when all values have been loaded. Following is the code opening the modal -
function open(){ console.log("open modal"); var modalInstance = $modal.open({ animation: true, templateUrl: 'views/view1.html', scope: $scope, }); }; view1.html
<div class="modal-header"> </div> <div class="modal-body"> <div> <progressbar class="progress-striped active" max="100" type='success' value="progress"></progressbar> </div> </div> I want to close the modal when value of scope variable progress becomes 100, how can I go about it?