Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ui-bootstrap tooltip doesn't work when used with ng-repeat

I would like to use the ui-bootstrap tooltip directive to assign tooltips to an array of buttons which are rendered by an ng-repeat directive, like this:

<button ng-repeat="label in labels" tooltip="{{label}}">{{label}}</button>

but I'm facing a strange issue: the ng-repeat loop variable gets a blank value, except that in the tooltip itself, so for example in the above example the label value would be blank in the button. A snippet showing the issue could be seen at this link. Everything is ok removing the tooltip attribute. Is there anyone who has been using ui-bootstrap and knows about such issues?

like image 536
remigio Avatar asked Aug 20 '26 09:08

remigio


1 Answers

You are using old angular-ui lib, This one seems like a bug of Angular-Ui, Looks like they have Fixed it in current version.

Demo: http://plnkr.co/edit/wSzIjgq6JDAAY06iNGrG?p=preview

like image 74
SunnyShah Avatar answered Aug 22 '26 12:08

SunnyShah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!