How to enable Bootstrap Tooltip on disabled button using AngularJS?

前端 未结 3 1663
灰色年华
灰色年华 2021-01-21 14:15

I need to display a tooltip on a disabled button and remove it if it is enabled using AngularJS.

3条回答
  •  盖世英雄少女心
    2021-01-21 15:19

    Assuming you're using angular-ui-bootstrap:

    http://plnkr.co/edit/vA7sizeDWwyC7KxeuGel?p=preview

    
      

    Check the checkbox to disable the button

提交回复
热议问题