将此作为 Qusstion-answer 帖子分享。
当您必须在 ui-router 中使用$templateCache
路由templateProvider
并且必须使用代码时该怎么办?注入不起作用,角度不能通过引用注入。
例子 :
...
templateProvider : function($templatecache) {
...
},
...
将此作为 Qusstion-answer 帖子分享。
当您必须在 ui-router 中使用$templateCache
路由templateProvider
并且必须使用代码时该怎么办?注入不起作用,角度不能通过引用注入。
例子 :
...
templateProvider : function($templatecache) {
...
},
...