I'm currently working on a feature where I need to show or hide two divs conditionally using ng-show based on the completion of an AJAX call. The layout for this includes:
<div id="div1" ng-show="!loadingData">
<!--Some markup here-->
</div>
<div id="loadingMessage" ng-show="loadingData">
Loading...
</div>
The function responsible for triggering this change is as follows:
$scope.loadingData=true;
var promise = dao.doAjaxGet("url");
promise.then(function(data){
//Hide loading message
$scope.loadingData=false;
});
Although everything works perfectly in Chrome, Safari, and Firefox, we are encountering issues with IE7 and IE8. In these versions, the loading message remains hidden and div1 stays visible regardless of the status of the AJAX call. Any suggestions on how to resolve this problem?