You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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:
<!-- foo directive usage --><foo><p>Regular content goes here.</p><foo-footer><p>I show up in the footer.</p></foo-footer></foo>
<!-- foo directive dom (after rendering) --><divclass="foo"><divclass="foo-body"><p>Regular content goes here.</p></div><divclass="foo-footer"><p>I show up in the footer.</p></div></div>