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?