Hi Matjaz
I prefer the plunkr with the more expressive HTML, i.e.
<div ng-repeat="item in items">
<div custom-text="item.text" class="item"></div>
</div>
... since the intent is clearer whjen you read the HTML
I believe you could simplify this slightly though - do you really need the
compile function?
To take it a step further, if your intent is just to add a conditional
tooltip, wouldn't a custom-tooltip directive be more expressive?
.. but perhaps the experts can help out here ..
see http://plnkr.co/edit/yRyJfizz5TusTRI9Hr7V?p=preview
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.