title: How to destroy an angularjs app?
body: <p>I need to be able to load/unload angular applications dynamically without causing memory leaks. In jQuery you can do <code>$("#elementHoldingMyWidget").remove();</code> and the proper destruction code gets executed, event handlers are unbound etc.</p>
  
  <p>I've been unable to find anything in the angular docs mentioning the possibility of tearing down an app once it's been bootstrapped.</p>
  
  <p>My 1st attempt was to destroy the rootScope like so:</p>
  
  <pre><code>var rootScope = $("body").scope();   
  rootScope.$destroy();
  </code></pre>
  
  <p>But this doesn't seem to be working, and I'm not sure how the injector and services would be cleaned up even if it did.</p>
  
  <p>How should this be done?</p>