Angular ui bootstrap directive template missing

后端 未结 7 1080
礼貌的吻别
礼貌的吻别 2020-12-23 01:54

I\'m currently testing out angular bootstrap-UI locally on my machine. When I try to recreate the example of accordion and dialog box. I get this error message

相关标签:
7条回答
  • 2020-12-23 02:44

    The likely cause of this issue is the accepted answer but one other possible cause of this issue is something I ran into and I wanted to post in case anyone else ran into the same secondary cause to the problem.

    The symptoms were exactly the same, 404 on the bootstrap templates but in my case I actually included the 'ui-bootstrap-tpls.min.js' javascript file. The problem is that I also included the non template version, 'ui-bootstrap.min.js'. Once both were included, and I suspect order was important, one would displace the other. In my case, the non-template version displaced the templated version causing the 404 issues.

    Once I made sure to ONLY INCLUDE 'ui-bootstrap-tpls.min.js' all worked as expected.

    0 讨论(0)
提交回复
热议问题