2017-11-25 121 views
0
<!-- Popover #1 used this html--> 
<a class="btn btn-primary" data-placement="top" data- 
popover-content="#a1" data-toggle="popover" data-t 
trigger="focus" href="#" tabindex="0">Popover 
Example</a> 

<!-- Content for Popover #1 --> 
<div class="hidden" id="a1"> 
<div class="popover-heading"> 
This is the heading for #1 
</div> 
<div class="popover-body"> 
This is the body for #1 
</div> 
</div> 

使用這個網站碼angular4圖書館,我需要CSS的頂部,左側,右側和底部
並與指令,因爲我不想觸發它使用jQuery
代碼或任何庫。如何使用沒有jQuery的酥料餅的功能引導酥料餅和angular4

+0

我想知道你是否嘗試過https://ng-bootstrap.github.io/#/getting-started或者你是否希望在老派的方式做到這一點?就像下載bootstrap然後在Angular 4應用程序中使用它一樣? –

+0

Bootstrap庫已添加到我的項目中。我不希望popover函數觸發它,因爲我不想使用jquery.so需要相同的bootstrap 4 popover功能。如果上面提到的html代碼使用相同類型 – user3881248

回答

0

如果你不想使用jQuery,ngx-popover將解決你的問題。

npm install ngx-popover --save 
+0

謝謝但我不想使用圖書館 – user3881248