I have these three element all with the same directive attribute:
<div my-directive></div><div my-directive></div><div my-directive></div>
I want the directive to execute (i.e., compile and link) only once for the
first element. I also want the directive to *know* about the other elements
- but again, not execute for them.
I tried simply removing the attribute does not work.
element.siblings().removeAttr('my-directive');
$compile();
But it doesn't work.
Thanks!
--
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.