ui-bootstrap-tpls failed to load template

前端 未结 7 808
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  旧时难觅i
    2020-12-17 11:11

    I just wanna post my solution for this error.

    1. include the tpls version of ui.bootstrap

    src="assets/bower_components/angular-bootstrap/ui-bootstrap-tpls.js"

    apparently the none tpls version doesn't include those templates.

    1. when you inject it into you app, make sure you inject ui.bootstrap and not ui.bootstrap.modal

      angular.module("shiftPlanner", ['ngResource', 'ngRoute', 'ui.bootstrap']);

    for more info rtfm ;)

提交回复
热议问题