Using Bootstrap Tooltip with AngularJS

后端 未结 19 1598
抹茶落季
抹茶落季 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 10:59

    Simple Answer - using UI Bootstrap (ui.bootstrap.tooltip)

    There seem to be a bunch of very complex answers to this question. Here's what worked for me.

    1. Install UI Bootstrap - $ bower install angular-bootstrap

    2. Inject UI Bootstrap as a dependency - angular.module('myModule', ['ui.bootstrap']);

    3. Use the uib-tooltip directive in your html.


    
    

提交回复
热议问题