1

我正在使用angular-meteor

当我尝试通过角度服务加载模板时,$templateCache.get我得到了404/undefined.

AFAIK,当流星运行时,他将所有 html 文件加载到$templateCache. 我看不到这个,$templateCache只有在我第一次使用时才对我有用$templateCache.put

不工作:

$templateCache.get("table-nested-sc")

在职的:

$templateCache.put("table-nested-sc","some html")
console.log($templateCache.get("table-nested-sc"))

有什么建议么?

谢谢!

4

0 回答 0