Hi there, I've been trying to get something to work but to no avail. I have a directive that uses a templateUrl to render from a partial. What I'd like to do though is do some work on sub-directives *before* the HTML the partial is squeezed in. Let me give you a rough example of what I mean:
<my-custom-component> <an-entry>blah</an-entry> <an-entry>blah</an-entry> <my-custom-component> What I want to do is some work using those an-entry elements so I wrote out two directives, and thinking that what I needed was transcode, set that option as part of the my-custom-component declaration. This however does not work as I expected, so to instrument it I tried to log when inside the an-entry directive link() handler. Lo and behold, it was never triggered. No set of options seemed to make this work (I experimented a bit with replace). This suggests to me that the templateUrl partial is being inserted and overwriting the <an-entry> elements before they are processed. The stranger thing is that switching to using an inline template seems to fix this problem, but I really don't want to go this way. Have a I missed the magic incantation that would enable me to achieve what I am asking? Thanks in advance, Alex J Burke. -- 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.
