1

I wanted uibTooltip directive instead of native title HTML atribute. Then, I got a directive that provides an automatic permutation of attributes before compiling.

The troubles are in ngRepeat directives if tag with affected attributes is inside.

You can see it here (a JSFiddle testing example).

2 Answers2

2

because this directive use terminal and when you use button inside <li>

<li><button type="button" ng-repeat="btn in vm.buttons" class="btn btn-default" title="Add" ng-click="vm.add()"><span class="glyphicon glyphicon-plus"></span></button></li>

this link is well explained about terminal and priority.

Community
  • 1
  • 1
Gourav Garg
  • 2,856
  • 11
  • 24
0

Here is a solution! It is success if we compile inside postLink function.