Using Bootstrap Tooltip with AngularJS

后端 未结 19 1541
抹茶落季
抹茶落季 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:07

    You can use selector option for dynamic single page applications:

    jQuery(function($) {
        $(document).tooltip({
            selector: '[data-toggle="tooltip"]'
        });
    });
    

    if a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added.

提交回复
热议问题