Angular ui bootstrap directive template missing

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

    My 5 cents after wasting 2 hours with this problem. You should:

    1. Go to http://angular-ui.github.io/bootstrap/. Click on create a custom build and choose the features you use. (There is no point to pull 60k for 1 item).
    2. Include custom.tpls.js in my case it was ui-bootstrap-custom-0.10.0.min.js
    3. In your Angular module include 'ui.bootstrap.yourfeature' in my case it was 'ui.bootstrap.modal'
    4. and also include 'ui.bootstrap.tpls'. So my module complete depencies look like this:

      var profile = angular.module("profile",[ 'ui.bootstrap.modal', 'ui.bootstrap.tpls' ]);

    5. Save 2 hours and be happy :-).

提交回复
热议问题