I have created an alternative with $compile/priority/terminal

http://plnkr.co/edit/i08WNBxiuINV7vAMgoEd?p=preview

Which one do you prefer and is there a better way?

On Thursday, March 27, 2014 12:56:55 PM UTC+1, Matjaž Lipuš wrote:
>
> Depending of one directive logic I want conditionally add tooltip
>
>    - I use 3rd party tooltip directive
>    - add tooltip only if some condition is met
>    - do not initialise tooltip directive if it's not necessary
>
> Here is a demo: http://plnkr.co/edit/x5DpP8G6imJ3yeXbdZhW?p=preview
>
> I want to dynamically add tooltip (or any other directive) ONLY IF 
> condition is met.
>

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