New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for ngProjectAs #21762

Closed
CWSpear opened this Issue Jan 24, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@CWSpear
Copy link

CWSpear commented Jan 24, 2018

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

ngProjectAs is a tool for getting styling to work in specific use-cases as described in https://medium.com/claritydesignsystem/ng-content-the-hidden-docs-96a29d70d11b

I don't see any documentation for this in the Angular docs. Is it safe to use? If so, I could maybe contribute some documentation (wherever it might go...?).

@trotyl

This comment has been minimized.

Copy link
Contributor

trotyl commented Jan 25, 2018

Duplicate of #17983 (ngProjectAs is part of the content projection)

@CWSpear

This comment has been minimized.

Copy link
Author

CWSpear commented Jan 25, 2018

@trotyl oh ok, cool. I searched for ngProjectAs (since that's simply all I had to go on when I was introduced to it by another developer) and it doesn't appear in that thread, so it didn't come up.

Looks like it's being taken care of (or at least, enough that this additional issue doesn't add anything), so I'll go ahead and close it. Thanks! 👍

@blowsie

This comment has been minimized.

Copy link
Contributor

blowsie commented Aug 1, 2018

Could someone please provide a link to the relevant section? After reading this, searching google, searching with the angular website, I am unable to find the documentation for ngProjectAs

@mlc-mlapis

This comment has been minimized.

Copy link

mlc-mlapis commented Aug 1, 2018

@blowsie ... yep, the descriptions is missing but in reality it's very trivial thing ... read this
https://medium.com/claritydesignsystem/ng-content-the-hidden-docs-96a29d70d11b

<wrapper>
  <ng-container ngProjectAs="counter">
    <counter></counter>
  </ng-container>
</wrapper>

That's all. So the main idea is to allow to get components placed deeper in the tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment