![](/img/trans.png)
[英]How can I add a tooltip/popover to table data using Angular2 and Bootstrap?
[英]How to use Bootstrap Popover with Angular2
JQuery和Angular不能很好地結合在一起。 安裝ng2-popover :
npm i ng2-popover
並像這樣使用它:
<span popover="content to be shown in the popover">
element on which this popover is applied.
</span>
您也可以嘗試我發布的ng2-pop-over庫(不要與上面提到的ng2-popover混淆)。 它很緊湊,你必須添加你的風格,但有沒有jQuery解決你的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.