Open agent0 opened 10 years ago
To illustrate the error, I have set up a Plunker: http://plnkr.co/edit/RZDqHElcymcelKH2F9Qr The difference between the ok page and the not-ok page is that the transcluded element is not the direct child of the transcluding element. Is this a bug in angular or (more likely) in my code?
Hi, I am experiencing a strange problem in my custom directive that support multiple transclusion into a single template. Here is the code of the directive
The directive works just fine as long as the transcluded element is a top-level child of the transcluding parent. If, however, the transcluded content is not a top-level child, the Exception thrown is this:
So the problem only occurs if the DOM is changed in a way that removes to original anchor and tries to insert a former child node. Is there any way to achieve what I want (e.g. wrap the children into some angular-specific code).
Regards,
Jürgen