Francisc Francisc - 1 year ago 82
AngularJS Question

How to change ui-view template URL programatically

I want to change the

programatically from inside a controller because the
option does not support injection of services and I need a service to determine the template URL.

Thank you.

Answer Source

See the docs for templateProvider here:
"Quick Reference - template, templateUrl, templateProvider", Github - angular-ui/ui-router

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download