title: Why angular.bootstrap() to document throws error
body: <p>I have my test example in this <a href="https://plnkr.co/edit/wkFv9G3rFAjOYrANHczF?p=preview" rel="nofollow noreferrer">plunkr link</a></p>
  
  <p>My question is NOT DUPLICATE of <a href="https://stackoverflow.com/questions/21426606/angular-bootstrap-throwing-error">this one</a></p>
  
  <p>Also the <a href="https://github.com/angular/angular.js/issues/3692" rel="nofollow noreferrer">Google Result and Github Bug</a> was about the bug reporter <em>not defining the module which he was trying to bootstrap in the first place</em></p>
  
  <p>I have 3 modules <code>grandParentModule</code>, <code>parentModule</code> and <code>nestedModule</code>.</p>
  
  <p>I have <strong>bootstrapped <code>parentModule</code> and <code>nestedModule</code> to 2 nested div elements</strong> and they are <strong>working fine.</strong></p>
  
  <p><strong>But as soon as I try to bootstrap <code>grandParentModule</code> to document, it is throwing a console error.</strong></p>
  
  <p><strong>This is my HTML</strong></p>
  
  <pre><code>&lt;div id="parent" ng-app="parentModule"&gt;
    &lt;div id="nested"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>And this is my SCRIPT</strong></p>
  
  <pre><code>angular.module('grandParentModule', []);
  angular.module('parentModule', []);
  angular.module('nestedModule', []);
  
  var nestedElem = document.getElementById("nested");
  
  angular.bootstrap(angular.element(nestedElem), ['nestedModule']);
  
  //comment / uncomment this line to toggle the error at console
  angular.bootstrap(document, ['grandParentModule']);
  </code></pre>
  
  <p>Only this line <code>angular.bootstrap(document, ['grandParentModule']);</code> is causing the error </p>
  
  <blockquote>
    <p>Uncaught Error: [ng:btstrpd] <a href="http://errors.angularjs.org/1.5.5/ng/btstrpd?p0=%26lt%3Bdiv%20id%3D%22parent%22%20ng-app%3D%22parentModule%22%26gt%3B" rel="nofollow noreferrer">http://errors.angularjs.org/1.5.5/ng/btstrpd?p0=%26lt%3Bdiv%20id%3D%22parent%22%20ng-app%3D%22parentModule%22%26gt%3B</a></p>
  </blockquote>
  
  <p>Can anyone explain to me why is it happening?</p>