title: Controlling include of js files using route in Angular
body: <p>Is there any way to include <strong>only relevant js files</strong> for a single route, using angularjs? So not putting all includes into index.html, but call only user.js on /user route. </p>
  
  <p>Something similar like calling css here <a href="https://stackoverflow.com/questions/15193492/how-to-include-view-partial-specific-styling-in-angularjs">How to include view/partial specific styling in AngularJS</a></p>
  
  <p>That way I can optimise my app to have only necessary files on each route. </p>
  
  <p>Thank you,
  Marko</p>
  
  <p>EDIT 1) I'm using something like this <a href="https://stackoverflow.com/questions/29468522/angular-controller-not-loading-using-oclazyload-and-ngroute">Angular controller not loading using OcLazyLoad and ngRoute</a>, if I have time, I will put on bitbucket later so that all can use it :D</p>