我注意到AngularJS UI Bootstrap对模板使用以下方法:
angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function($templateCache) { $templateCache.put("uib/template/progressbar/bar.html" }
所以我认为这是一个非常好的解决方案但是为每个模板创建模块的原因是什么,例如angular.module(“uib / template / progressbar / bar.html”或angular.module(“uib / template / progressbar / progress.html”) “等等
它会给我们带来什么好处?