如何在一个plunker中包含ui-bootstrap?
I created the following plunker:
我创建了以下plunker:
http://plnkr.co/edit/c0pGkinMpXBBT1dpLxAo?p=preview
But this gives me an error with the line where I try to include a reference to ui-bootstrap
但这给了我一个错误,我尝试包含对ui-bootstrap的引用
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script data-require="angular.js@1.0.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" data-semver="1.0.7"></script>
<script src="//github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-0.4.0.js"></script>
<script src="app.js"></script>
</head>
I am not very experienced with creating plunkers. Can someone give me some advice as to what I am doing wrong
我对创建掠夺者的经验不是很丰富。有人可以给我一些关于我做错了什么的建议
1 个解决方案
#1
5
You can find and add external libraries from the right side bar in most cases (from the little button that looks like a book), but I think your error stems from that you're linking to the GitHub page instead of the actual script.
在大多数情况下,您可以从右侧栏中找到并添加外部库(从看起来像书的小按钮),但我认为您的错误源于您链接到GitHub页面而不是实际脚本。
The correct link should be: https://raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-0.4.0.js
正确的链接应该是:https://raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-0.4.0.js
更多相关文章
- 使用bootstrap模式框的自定义选择框错误
- element.replaceWith在自定义指令的链接中仅在第一次调用时工作
- $.each遍历JSON字符串和 Uncaught TypeError: Cannot use 'in' o
- 2_python连接MariaDB错误
- 获取错误“ValueError:int()的无效文字,基数为10:'3128;'在运行Tensor
- GIS / Gdal / OSGeos在Windows上的django中导入错误
- Python第十天 print >> f,和fd.write()的区别 stdout的buffer 标
- Hive中使用Python实现Transform时遇到Broken pipe错误排查
- 'module'对象没有属性'views' django错误