【发布时间】:2015-06-05 19:48:41
【问题描述】:
我正在开发其他人的 Angular 应用程序。我正在尝试添加一个弹出框。 html 位于 ng-include 模板中,并且有一个标签:
<p class="filetracker-label" data-toggle="popover" title="title is here!" data-content="popOver on bottom">Tracked Files</p>
我在 body 标记中初始化了弹出框(bootstrap.js 和 jquery 在 head 标记中 - 我已经移动了它们,但它没有改变任何东西):
<script>
$(document).ready(function() {
$('[data-toggle="popover"]').popover({
placement: 'left',
trigger : 'hover'
});
console.log('here');
});
</script>
我在引导之前加载 jquery - 我已经研究了所有其他关于此的帖子,但我看不出我做错了什么。当我悬停时,我看到了标题文本,但它不是引导样式 - 当然内容不存在。
【问题讨论】:
标签: jquery angularjs twitter-bootstrap