title: angularjs routing, javascript does not work on injected views
body: <p>I just followed the tutorial on the link below
  <a href="https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating" rel="nofollow">https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating</a></p>
  
  <p>I did exactly as is described on the page, but evoluting it to a real project, I had to put some javascript code inside internal pages, pages/about.html for example. and for some reason, it is not executed. even you put a single </p>
  
  <pre><code>&lt;script&gt;
      alert('foo');
  &lt;/script&gt;
  </code></pre>
  
  <p>it's not interpreted as a javascript code. and the alert is not shown</p>
  
  <p>pages are injected using ng-view</p>
  
  <pre><code>&lt;div id="main"&gt;
  
      &lt;div ng-view&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>whole code can be viewed in 
  <a href="https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating" rel="nofollow">https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating</a></p>
  
  <p>thanks</p>