Hi Justin,

I want conditional directives (tooltips) inside other directive. As plnks 
shows.

I used $compile because I don't know how can I otherwise add dynamic 
directive?

Thanks for the plunk, I have tweaked it so I can read 
text: http://plnkr.co/edit/qN1OCgP8mGn0dlOhB5BK?p=preview

But again, how can I conditionally add ui.bootstrap.tooltip directive?

On Friday, March 28, 2014 8:09:25 AM UTC+1, Justin Walsh wrote:
>
> 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.

Reply via email to