Brian, Ok, I see what you are trying to do. I'm not sure if this is a good idea to begin with. Let me first state that it is possible, with plain JS and some angular. No jQuery needed at all. There are a couple of things that needs to be done.
1. create an toggle directive that you add to each one you want to toggle. 2. run that at a higher priority, and make it terminate. 3. when terminated, save the innerHTML to a temp storage. 4. check if the direcive is enabled, if so compile what you have 5. if not, take out the direcive, and then compile. 6. rinse and repeat. Be aware that this will involve lots of edge-cases and pitfalls. There is no simple solution, and the nesting of the directives doesn't make it simpler. I'm pretty sure, that your use-case is solvable in a couple of other ways that are less error-prone and don't for starterts, a couple of ngIfs in your template will come a long way. Regards Sander -- 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.
