urish / angular-load

Dynamically load scripts and css stylesheets in your Angular.JS app
MIT License
243 stars 65 forks source link

What about ui router #6

Open marijang opened 9 years ago

marijang commented 9 years ago

How to use with ui router? Thanks

brianfoody commented 9 years ago

Use the resolve functionality to preload any scripts you need.

https://github.com/angular-ui/ui-router/wiki#user-content-resolve

You should close this as an issue as it's not for the author to provide integration with third party libraries.

ganmedia commented 8 years ago

Any advice when using routing?

ghost commented 7 years ago

I guess that you can write separated route configuration in separated files. and before going to the desired link you need to make sure that the loadScript resolved