-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Transcluding multiple elements, bug or intended? #3795
Comments
Ah sorry may have read your question wrong, does it relate the posted bugs? |
No, is not related. No ng-repeat nor ng-include :) |
Hi, you might guess that this is not something simple to explain what is going on, but maybe I can try :-) Extracting the content of a directive and generating a transclusion function is a compile time operation. The directive The main limitation you will face with a workaround is the fact that at Now, to make this work, what you need to do is allow some cooperation between
Not the easiest thing around, but this same technique is used at https://github.com/angular-ui/bootstrap/blob/master/src/tabs/tabs.js |
Hello, here is an interesting discussion in SO.
It is hard to explain without looking at the examples provided in that discussion. But I leave you here two plnks with examples:
http://plnkr.co/edit/FUYCQbw8Tnx3Qhcj4108?p=preview
http://plnkr.co/edit/szuDxjGPB8id2yrto7zM?p=preview
Cheers.
The text was updated successfully, but these errors were encountered: