Why ng-scope is added to javascript inline of my partial view and makes alert not working?
I'm using AngularJs with templating system. I want to add specific inline javascript script to each template adding alert box regards to the selected tab ( Home | List | Settings ) Html renders : but ng-scope is added and nothing alerts when you change of tabs. <script type="text/javascript" class="ng-scope">alert("home")</script> I make the example available here : http://bit.ly/HWcN1H or here plunkr example with alert("template1") present into template1.html but renders as <script type="text/javascript" class="ng-scope">alert("template1")</script> Deepak I have improved endorama's solution