Miquel Al. Vicens
Miquel Al. Vicens

Reputation: 376

Non-compiled directive of child tag in ngRepeat parent

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).

Upvotes: 1

Views: 128

Answers (2)

Miquel Al. Vicens
Miquel Al. Vicens

Reputation: 376

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

Upvotes: 0

Gourav Garg
Gourav Garg

Reputation: 2911

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.

Upvotes: 2

Related Questions