Using Bootstrap Tooltip with AngularJS

后端 未结 19 1506
抹茶落季
抹茶落季 2020-12-07 10:40

I am trying to use the Bootstrap tooltip in an app of mine. My app is using AngularJS Currently, I have the following:

相关标签:
19条回答
  • 2020-12-07 11:11

    for getting tooltips to refresh when the model changes, i simply use data-original-title instead of title.

    e.g.

    <i class="fa fa-gift" data-toggle="tooltip" data-html="true" data-original-title={{getGiftMessage(gift)}} ></i>

    note that i'm initializing use of tooltips like this:

    <script type="text/javascript">
        $(function () {
            $("body").tooltip({ selector: '[data-toggle=tooltip]' });
        })
    </script>
    

    versions:

    • AngularJS 1.4.10
    • bootstrap 3.1.1
    • jquery: 1.11.0
    0 讨论(0)
提交回复
热议问题