首页 > angularjs结合bootstrap问题

angularjs结合bootstrap问题

angularjs简单的封装了bootstrap的tooltip的指令

页面上使用

为什么tooltipWord的值变化的时候,tooltip上面的title不会自动更新,但是console可以得出此时指令的tooltipWord已经变化了


已经有 bootstrap angular 版
angular for bootstrap


scope.$apply(function(){

  code})试试

你要 watch scope.tooltipWord,然后重新初始化 tooltips

【热门文章】
【热门文章】