如何在Bootstrap 4中使用Angular 1 UI Bootstrap工具提示

时间:2018-04-03 19:26:16

标签: javascript angular twitter-bootstrap

指令<div uib-tooltip="hello-world" tooltip-is-open="true">hello world</div>返回以下错误:

Failed to load template: uib/template/tooltip/tooltip-popup.html

该网站使用cdnjs.cloudflare.com中的ui-bootstrap.js和ui-bootstrap.tpsl.js。如果我不包含ui-bootstrap.js,页面将继续返回错误,说无法找到该模块。

初始化Angular的主要模块已经将ui.bootstrap作为依赖项包含在内。

1 个答案:

答案 0 :(得分:0)

Make sure that you copy over the bootstrap 3 CSS styles for the tooltip into your bootstrap 4 stylesheet.