Is there any way to include only relevant js files for a single route, using angularjs? So not putting all includes into index.html, but call only user.js on /user route.
Something similar like calling css here How to include view/partial specific styling in AngularJS
That way I can optimise my app to have only necessary files on each route.
Thank you, Marko
EDIT 1) I'm using something like this Angular controller not loading using OcLazyLoad and ngRoute, if I have time, I will put on bitbucket later so that all can use it :D