我想从控制器内部以编程方式更改ui-view templateUrl,因为templateUrl选项不支持服务注入,我需要一个服务来确定模板URL.
谢谢.
请在此处查看templateProvider的文档:
“Quick Reference – template,templateUrl,templateProvider”,Github – angular-ui / ui-router
“Quick Reference – template,templateUrl,templateProvider”,Github – angular-ui / ui-router