Angularjs   发布时间:2022-04-20  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了angularjs – ui-bootstrap-tpls.min.js和ui-bootstrap.min.js之间的区别是什么大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在cdnjs的 Angular-UI-Bootstrap page,说:

本地AngularJS(Angular)指令为Twitter的Bootstrap。小脚本(5kB gzipped!),没有第三方JS依赖(jQuery,bootstrap JS)需要!

…并有选项

//cdnjs.cloudFlare.com/ajax/libs/angular-ui-bootstrap/0.6.0/ui-bootstrap-tpls.min.js

//cdnjs.cloudFlare.com/ajax/libs/angular-ui-bootstrap/0.6.0/ui-bootstrap.min.js

差异这些显示一个微妙的差别,我似乎找不到任何文档…

编辑:

编辑:

所以,js需要的ui-bootstrap-tpls.min.js ==(ui-bootstrap.min.js html模板)。如果你只包括ui-bootstrap.min.js,你还需要提供你自己的html模板。

否则你会看到类似:

GET http://localhost:8989/Hello-world/template/tooltip/tooltip-popup.html 404 (Not Found) angular.js:7073
Error: [$compile:tpload] http://errors.angularjs.org/undefined/$compile/tpload?p0=template%2Ftooltip%2Ftooltip-popup.html
    at Error (<anonymous>)
    at http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:6:453
    at http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:54:14
    at http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:64:438
    at A (http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:89:258)
    at A (http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:89:258)
    at http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:90:465
    at g.$eval (http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:98:272)
    at g.$digest (http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:96:142)
    at g.$apply (http://localhost:8989/Hello-world/js/vendor/angular-1.2.0-rc.3/angular.min.js:99:100)

大佬总结

以上是大佬教程为你收集整理的angularjs – ui-bootstrap-tpls.min.js和ui-bootstrap.min.js之间的区别是什么全部内容,希望文章能够帮你解决angularjs – ui-bootstrap-tpls.min.js和ui-bootstrap.min.js之间的区别是什么所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。