Skip to content

docs: add documentation for de-duplicate host directives#68236

Open
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
SkyZeroZx:docs/host-directive-new
Open

docs: add documentation for de-duplicate host directives#68236
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
SkyZeroZx:docs/host-directive-new

Conversation

@SkyZeroZx
Copy link
Copy Markdown
Contributor

@SkyZeroZx SkyZeroZx commented Apr 16, 2026

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?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested a review from crisbeto April 16, 2026 04:05
@angular-robot angular-robot bot added the area: docs Related to the documentation label Apr 16, 2026
@ngbot ngbot bot added this to the Backlog milestone 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 ,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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,

// (undocumented)
CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK = 4002,
CONFLICTING_HOST_DIRECTIVE_BINDING = 8024,
CONFLICTING_HOST_DIRECTIVE_BINDING = -8024,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here, 8024 to -8024

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

Labels

area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants