title: AngularJS use of .run after routing to a new page causes issues
body: <p>I am using ngRoute to navigate to different pages from a main login page (let's call it <code>index.html</code>). The routing is done on its main js file. I have a problem when I am trying to use a <code>.run</code> block in a certain page (named <code>home.html</code> and which has the corresponding <code>home.js</code>, through which <code>.run</code> is being executed) I route to from the main page. Since all the js files are listed in that main <code>index.html</code> file, it runs all of them while loading that page. As a result, it also executes the <code>app.run</code> , which I only want to execute when loading <code>home.html</code>.</p>
  
  <p>It seems that I cannot move the listing of <code>home.js</code> from <code>index.html</code> to <code>home.html</code>, it just does not read it. I am assuming that all the js files of the routed pages must be listed only in the main html file?</p>
  
  <p>So, considering all this, my question is how do I manage to execute <code>.run</code> for a page I am routing to, but only to that page and not the main routing page? </p>