This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Proposal for multiple transclusion targets #4350
Milestone
Comments
+1 |
+1 |
2 similar comments
+1 |
+1 |
https://github.com/wmluke/angular-blocks provides this functionality. |
Workaround for this can be implemented with custom directive. <div cs-composite>
<div cs-section="header">
Composite Component Header
</div>
<div cs-section="footer">
Composite Component Footer
</div>
</div> |
+1 |
3 similar comments
+1 |
+1 |
👍 |
+1 |
Web Components have this awesome feature, it would be awesome to have it in angular! :) |
A feature like this will land in 1.5: a4ada8b :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When transcluding into a directive, it would be super useful to specify multiple targets. Polymer makes this easy with the
<content />
element, together with the[select]
attribute.What I'm proposing is to allow
[ng-transclude]
(in the target directive template) to take an optional CSS selector, which would select content from the source (where the directive was used) and stick it into the appropriate place in the template. For instance:The text was updated successfully, but these errors were encountered: