Daniel, I love you.

On Tuesday, December 24, 2013 7:11:56 PM UTC+2, Daniel Tabuenca wrote:
>
> It would be good to know what exactly you are trying to accomplish with 
> this, as there might be better ways to do it. What you could do is have the 
> first element mark the siblings in some way and then check that in the 
> compile so you can abort early. For example:
>
> app.directive("myDirective", function(){
>    return {
>      compile: function(element, attrs){
>             if(element.data('no-execute')){  
>               return;
>             }
>             element.siblings().data('no-execute' ,true);
>             element.text('I EXECUTED');
>      }
>    };
> });
>
>

-- 
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/groups/opt_out.

Reply via email to