title: Run javascript code after angularjs route loaded
body: <p>I need to show an alert after a route has been loaded by angularjs. The piece of code to show the alert is in the view loaded asynchronously by angularjs:</p>
  
  <pre><code>&lt;script&gt;
  alert('test');
  &lt;/script&gt;
  </code></pre>
  
  <p>Once the view has loaded, I expect this to be run, but it does not. I know I can broadcast and tell it to run afterwards etc, but I need a more generic solution.</p>