Angular ui bootstrap directive template missing

后端 未结 7 1115
礼貌的吻别
礼貌的吻别 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:24

    My issue was that I was still including the template-url in the HTML, like this:

    This caused my browser to hang - which is weird but that's the way it was.

    In summary, what I did:

    bower install bootstrap --save
    bower install angular-bootstrap --save
    

    In my index.html (note the "-tpls"):

    
    

    Then in my Angular app:

    angular
      .module('myApp', ['ui.bootstrap'])
    

    Then just remove the template-url in the HTML:

    Boom, works.

提交回复
热议问题