Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

No recommended selector for multiple content projection slots in the styleguide #2656

Open
joeeames opened this issue Oct 22, 2016 · 0 comments

Comments

@joeeames
Copy link
Contributor

The documentation & styleguide has no guidance for how to do a selector for multiple content projection slots. What is the "best practice" for selectors for multiple content projection?

Given the following:

...
</>

...
</>
and then in the projected component I would have:
<ng-content select="[my-title]" ...
<ng-content select="[my-body]" ....

But any selector can work. i.e. class selectors, given the right change to the HTML.
<ng-content select=".my-title" ...
<ng-content select=".my-body" ....

Or something else?

The styleguide should recommend a best practice.

@IgorMinar @wardbell @johnpapa

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant