$templateCache
一个人可以在保持对原始提供者的引用的同时覆盖核心提供者吗?我想覆盖$templateCache
不区分大小写。
IE 之类的
var normalGet = $templateCache.get;
var normalPut = $templateCache.put;
$templateCache.get = function(key) { normalGet(key.toLowerCase()); };
$templateCache.put = function(key,value) { normalPut(key.toLowerCase(), value); };
但不那么 hacky,更多 DI 风格?