ui-bootstrap-tpls failed to load template

前端 未结 7 798
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 10:45

I\'ve inherited an angular project, and it\'s having problems loading the ui-bootstrap-tpls modules.

For each directive it\'s trying to use from bootstrap, I get som

7条回答
  •  旧巷少年郎
    2020-12-17 11:00

    Yep. I solved this issue like this.. and by including ui-bootstrap-tpls.js

    angular.module('mainModule', ['ui.bootstrap', 'sub-module']);
    angular.module('sub-module', ['ui.bootstrap.modal']);
    

    However i am not sure if other cases like template-caching will cause the issue or not. At least not for me..

提交回复
热议问题