I have a website build by AngularJS
and angular-ui-router
. In index.html
, I load a lot of .js
and .css
files.
Now, I realize that a part of these .js
and .css
files are not necessary for the routes like https://localhost:3000/addin/...
. So I want to load them by ocLazyLoad
only for routes like https://localhost:3000/xxxxx/...
where xxxxx
is not addin
.
Does anyone how to accomplish that in the code?