I want to change the ui-view
templateUrl
programatically from inside a controller because the templateUrl
option does not support injection of services and I need a service to determine the template URL.
Thank you.
I want to change the ui-view
templateUrl
programatically from inside a controller because the templateUrl
option does not support injection of services and I need a service to determine the template URL.
Thank you.
See the docs for templateProvider
here:
"Quick Reference - template, templateUrl, templateProvider", Github - angular-ui/ui-router