Skip to content

fix(host): compile every stacked @HostListener and @HostBinding of a member - #601

Merged
Brooooooklyn merged 1 commit into
voidzero-dev:mainfrom
encharm:fix/stacked-host-decorators
Oct 22, 2026
Merged

Brooooooklyn merged 1 commit into
voidzero-dev:mainfrom
encharm:fix/stacked-host-decorators

Conversation

@Rush

@Rush Rush commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Only the first @HostListener or @HostBinding of a member was compiled:

@HostListener('click') @HostListener('keydown.enter') activate() {}
@HostBinding('class.on') @HostBinding('attr.aria-pressed') on = true;

listened to clicks only and bound only one of the two. Like ngtsc, each decorator is now its own host listener or binding.

tests/stacked_host_decorators_test.rs compares the hostBindings function with @angular/compiler-cli 21.0.1's for the same class: all four listeners (two passing $event), both bindings and hostVars: 3. It fails without the change.

…member

Only the first `@HostListener` or `@HostBinding` of a member was compiled:
`@HostListener('click') @HostListener('keydown.enter') activate() {}` listened
to clicks only. Like ngtsc, each decorator is now its own host listener or
binding.
@Brooooooklyn

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T10:31:13.198368Z cc1dcdb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc1dcdb887

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/oxc_angular_compiler/src/directive/property_decorators.rs
Comment thread crates/oxc_angular_compiler/src/directive/property_decorators.rs
@Brooooooklyn
Brooooooklyn merged commit 17b511b into voidzero-dev:main Oct 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants