fix(compiler): throw on duplicate input/outputs#65952
Merged
thePunderWoman merged 1 commit intoangular:mainfrom Feb 26, 2026
Merged
fix(compiler): throw on duplicate input/outputs#65952thePunderWoman merged 1 commit intoangular:mainfrom
thePunderWoman merged 1 commit intoangular:mainfrom
Conversation
d1b82c3 to
0167460
Compare
This was referenced Dec 10, 2025
0167460 to
b04794e
Compare
b04794e to
06136bb
Compare
06136bb to
52f67b9
Compare
inputs & outputs cannot be binded to 2 different directives/components properties
Eg
```
data = model();
dataChange = output(); // throws because model already emits on the `dataChange` output
userSomething = input({alias 'user'});
user = input(); // throws because userSomething already binds to the `user` input
````
fixes angular#65844
BREAKING CHANGE: The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.
52f67b9 to
79eca34
Compare
Member
Author
|
G3 has been cleaned up. |
alxhub
approved these changes
Feb 24, 2026
thePunderWoman
approved these changes
Feb 24, 2026
Contributor
thePunderWoman
left a comment
There was a problem hiding this comment.
reviewed-for: fw-compiler, public-api
packages/compiler-cli/test/compliance/test_cases/output_function/mixed_variants.ts
Show resolved
Hide resolved
Contributor
|
This PR was merged into the repository. The changes were merged into the following branches:
|
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.
inputs & outputs cannot be binded to 2 different directives/components properties
Eg
fixes #65844
BREAKING CHANGE: The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.