var app = angular.module('plunker', []);

//For siplicity I put the 3 controllers in this same file.

app.controller('MainCtrl', function($scope) {
  $scope.name = 'Main Controller';
  $scope.commonData = {};
});


app.controller('buttonCtrl', function($scope) {
  $scope.name = 'Button Controller';
  $scope.handleShowLoadingCoverClick = handleShowLoadingCoverClick;
  var isLoading = false;

  ///////////////////

  function handleShowLoadingCoverClick() {
    isLoading = !isLoading;
    $scope.commonData.isLoading = isLoading;  //Note JS will create these properties (commonData on $scope and isLoading on commonData) at this point, now how cool is that? (I come from C#).
  }
});


app.controller('loadingCoverCtrl', function($scope) {
  $scope.name = 'LoadingCover Controller';
  //$scope.showCover = $scope.$parent.commonData.isLoading; //Note this will NOT work!
  $scope.parentScopeData = $scope.$parent.commonData; 
});
<!DOCTYPE html>
<html ng-app="plunker">

<head>
  <meta charset="utf-8" />
  <title>AngularJS Plunker</title>
  <script>
    document.write('<base href="' + document.location + '" />');
  </script>
  <link rel="stylesheet" href="style.css" />
  <script data-require="angular.js@1.3.x" src="https://code.angularjs.org/1.3.13/angular.js" data-semver="1.3.13"></script>
  <script src="app.js"></script>

  <style>
    .content-container {
      position: absolute;
    }
  </style>

</head>

<body ng-controller="MainCtrl">
  <p>{{name}}</p>
  
  <div ng-controller="buttonCtrl">
    <button ng-click="handleShowLoadingCoverClick()">Toggle Loading Cover (nesting)</button>
  </div>
  
  <hr/>

  <div class="content-container">
    <div ng-include="'loadingCover.html'"></div>
    <pre>
      This is some more text to be covered by
      the loading cover.
      The cover will land on top using position:absolute 
      and putting the two in the same div.
      It will have transparent background and making what 
      it covers un-reachable. It stacks on-top using z-index. 
    </pre>
  </div>
</body>

</html>
/* Put your css in here */

<style>
  .loading-cover {
    display: block;
    position: absolute;
    background-color: rgba(99, 99, 99, 0.6);
    z-index: 1;
    width: 100%;
    height: 100%;
  }
  .center-middle {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
  }
</style>

<div ng-controller="loadingCoverCtrl">

  <div ng-show="showCover || parentScopeData.isLoading" class="loading-cover">
    <strong>Loading...</strong>
    <!-- I don't know how to include gif to Plunker and used http://websemantics.co.uk/online_tools/image_to_data_uri_convertor/ to convert mine to base64 data and include this stuff here -->
    <img class="center-middle" width="66" height="66" title="" alt="" src="data:image/gif;base64,R0lGODlhQgBCAPMAAKampgAAADExMU9PT4+Pj2hoaKKiohISEn5+fgAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAQgBCAAAE/xDISau9VBzMu/8VcRTWsVXFYYBsS4knZZYH4d6gYdpyLMErnBAwGFg0pF5lcBBYCMEhR3dAoJqVWWZUMRB4Uk5KEAUAlRMqGOCFhjsGjbFnnWgliLukXX5b8jUUTEkSWBNMc3tffVIEA4xyFAgCdRiTlWxfFl6MH0xkITthfF1fayxxTaeDo5oUbW44qaBpCJ0tBrmvprc5GgKnfqWLb7O9xQQIscUamMJpxC4pBYxezxi6w8ESKU3O1y5eyts/Gqrg4cnKx3jmj+gebevsaQXN8HDJyy3J9OCc+AKycCVQWLZfAwqQK5hPXR17v5oMWMhQEYKLFwmaQTDgl5OKHP8cQjlGQCHIKftOqlzJsqVLPwJiNokZ86UkjDg5emxyIJHNnDhtCh1KtGjFkt9WAgxZoGNMny0RFMC4DyJNASZtips6VZkEp1P9qZQ3VZFROGLPfiiZ1mDKHBApwisZFtWkmNSUIlXITifWtv+kTl0IcUBSlgYEk2tqa9PhZ2/Fyd3UcfIQAwXy+jHQ8R0+zHVHdQZ8A7RmIZwFeN7TWMpS1plJsxmNwnAYqc4Sx8Zhb/WPyqMynwL9eMrpQwlfTOxQco1gx7IvOPLNmEJmSbbrZf3c0VmRNUVeJZe0Gx9H35x9h6+HXjj35dgJfYXK8RTd6B7K1vZO/3qFi2MV0cccemkkhJ8w01lA4ARNHegHUgpCBYBUDgbkHzwRAAAh+QQJCgAAACwAAAAAQgBCAAAE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