angularJs $templateCache
摘要:模板加载后,AngularJS会将它默认缓存到 $templateCache 服务中。在实际生产中,可以提前将模板缓存到一个定义模板的JavaScript文件中,这样就不需要通过XHR来加载模板了 $templateCache 服务允许 $http 服务缓存经过XHR的模板请求,这样它们就只会被请求
阅读全文
posted @ 2017-08-16 13:33
posted @ 2017-08-16 13:33
posted @ 2017-08-10 00:14
posted @ 2017-08-07 02:08
posted @ 2017-08-02 15:24