docs: add documentation for de-duplicate host directives#68236
Open
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
Open
docs: add documentation for de-duplicate host directives#68236SkyZeroZx wants to merge 1 commit intoangular:mainfrom
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
Conversation
eneajaho
reviewed
Apr 16, 2026
| **host directive**, Angular keeps only the template match and discards all host directive matches. | ||
|
|
||
| The mental model is that a host directive match represents `Partial<YourDirective>` , a partial | ||
| application where only the inputs and outputs explicitly listed in `hostDirectives` are exposed , |
Contributor
There was a problem hiding this comment.
Suggested change
| application where only the inputs and outputs explicitly listed in `hostDirectives` are exposed , | |
| application where only the inputs and outputs explicitly listed in `hostDirectives` are exposed, |
erkamyaman
reviewed
Apr 16, 2026
| // (undocumented) | ||
| CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK = 4002, | ||
| CONFLICTING_HOST_DIRECTIVE_BINDING = 8024, | ||
| CONFLICTING_HOST_DIRECTIVE_BINDING = -8024, |
Contributor
There was a problem hiding this comment.
It looks like the CONFLICTING_HOST_DIRECTIVE_BINDING error code was accidentally changed from 8024 to -8024
| * Raised when a host directive input/output is exposed multiple times under the same name. | ||
| */ | ||
| CONFLICTING_HOST_DIRECTIVE_BINDING = 8024, | ||
| CONFLICTING_HOST_DIRECTIVE_BINDING = -8024, |
Contributor
There was a problem hiding this comment.
Same here, 8024 to -8024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Considering that it was currently merged (#67996 ), we added and documented the new rules for host directive deduplication.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information