I just followed the tutorial on the link below https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating
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
<script>
alert('foo');
</script>
it's not interpreted as a javascript code. and the alert is not shown
pages are injected using ng-view
<div id="main">
<div ng-view></div>
</div>
whole code can be viewed in https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating
thanks