mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 #65844
BREAKING CHANGE: The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.
|
||
|---|---|---|
| .. | ||
| GOLDEN_PARTIAL.js | ||
| mixed_variants.js | ||
| mixed_variants.ts | ||
| output_in_component.js | ||
| output_in_component.ts | ||
| output_in_directive.js | ||
| output_in_directive.ts | ||
| TEST_CASES.json | ||