更新时间:2021-09-09 21:46:09
正在缓存您的模板.有一些解决方法.打开开发工具时,可以使用Chrome的开发工具禁用缓存,也可以在应用程序中使用$templateCache.remove()
.
Your template is being cached. There are a couple of work arounds. Either use Chrome's dev tools to disable cache when the dev tools is open, or use the $templateCache.remove()
in your application.
app.run(function($rootScope, $templateCache) {
$rootScope.$on('$viewContentLoaded', function() {
$templateCache.removeAll();
});
});
查找有关删除模板缓存的更多信息这里.
Find more info on removing the template cache here.