<div ng-if="data.dataLoading"> Loading... </div>
JS
$scope.data.dataLoading = true; return someService.getData().then(function (results) { ... }).finally(function () { $scope.data.dataLoading = false; });
<div ng-if="data.dataLoading"> Loading... </div>
JS
$scope.data.dataLoading = true; return someService.getData().then(function (results) { ... }).finally(function () { $scope.data.dataLoading = false; });