Dependency Loading

When you need to import external resources such as JavaScript or Stylesheets you should do this with the “resolve” object inside app.js in $stateProvider:

 

 

You can load as many dependencies as you want, just add the entries to the resolve object with $ocLazyLoad parameter.

Was this article helpful?