Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change ui-view template URL programatically

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.

like image 762
Francisc Avatar asked Oct 20 '22 19:10

Francisc


1 Answers

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

like image 174
Nate Abele Avatar answered Oct 23 '22 23:10

Nate Abele