Skip to content
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

fix(compiler): improve error message for control flow and content pro… #54839

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pkozlowski-opensource
Copy link
Member

No description provided.

…jection

- provide an example of using ng-container with ngProjectAs
- add more information about whitespaces

Related to angular#54077
@pkozlowski-opensource pkozlowski-opensource added the area: compiler Issues related to `ngc`, Angular's template compiler label Mar 13, 2024
@ngbot ngbot bot added this to the Backlog milestone Mar 13, 2024
`1. Wrap the content of the ${
blockName} block in an <ng-container/> with the "ngProjectAs" attribute that matches the "${
slotSelector}" selector (ex.: <ng-container ngProjectAs="${slotSelector}">${
blockName}}{ ... }</ng-container>).`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capturing discussion with @crisbeto: ngProjectAs is not always needed as a regular attribute can do the job in some use-cases. Need to adjust the message to account for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: compiler Issues related to `ngc`, Angular's template compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant