指令<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作为依赖项包含在内。
答案 0 :(得分:0)
Make sure that you copy over the bootstrap 3 CSS styles for the tooltip into your bootstrap 4 stylesheet.