Add an extended diagnostic when using @Input() decorator in an EventEmitter()

This issue has been created since 2022-09-13.

Which @angular/* package(s) are relevant/related to the feature request?

compiler-cli

Description

While developing web apps, most of the time we just copy and paste stuff, for example @inputs and when we need an EventEmitter we forget to convert it to a @output .

Proposed solution

Add an extended diagnostic that warns the user when uses @input with an EventEmitter().

Alternatives considered

None

eneajaho wrote this answer on 2022-09-13

This is something that happens all the time with devs:
https://twitter.com/prestonjlamb/status/1569693548865519616

jessicajaniuk wrote this answer on 2022-09-21

Extended diagnostics are currently specifically template diagnostics. This code is actually in the typescript class. So as it is right now, an extended diagnostic wouldn't work here. Perhaps a lint check would help here.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-09-30
Star Count 84080
Watcher Count 3064
Fork Count 22235
Issue Count 1197

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Bug: create note from rss puts note in sidebar and removes rss button 2 2022-07-19 2022-08-08
Suggestion to add redirection , file descriptor in the tutorial. 1 2020-12-28 2022-09-09
Add people who translated 2 2021-04-02 2022-09-18
small suggested change in docs for Nuxt integration 1 2021-09-17 2022-09-11
Type aware allocators 28 2021-10-14 2022-09-27
Wrong active dots calculation 0 2021-04-28 2022-09-30
Bug: source vimrc make nerdtree bracket show again 3 2021-12-10 2022-09-27
Possible to handle spline with missing variable support in estimateEffect()? 0 2021-12-21 2022-09-14
writeSchema vs xPDO 3. 1 2022-02-01 2022-09-15
I broke something :-( 4 2022-02-13 2022-09-02
Beast mode needs art 0 2022-07-26 2022-09-19
Bug: Lacuna upgrade bug leads to temporary softlock 1 2022-07-26 2022-09-19
NCE: The bowl of cleansing 0 2022-07-26 2022-09-19
contribution guide を作成する 1 2021-03-01 2022-09-24
App failing to toggle between VR and standard 41 2021-03-22 2022-09-27
Desktop icons disappearing permanently 4 2021-12-22 2022-08-22
.env support 0 2021-09-11 2021-12-21
BundleName error 0 2021-10-29 2021-12-20
how multiple instances on the same device can be concurrent 4 2022-04-30 2022-09-27
Cannot use Ctrl+Up/Down or Alt+Up/Down to switch rooms in the TTY 4 2021-02-21 2022-09-22
Pip installing qsimcirq downgrades black 2 2022-03-09 2022-08-18
When using JWT Auth, v2 works. But v3 responds even without Authentication :( 0 2021-01-25 2022-09-25
System.OperationCanceledException at MirrorSharp.Internal.Connection+<ReceiveAndProcessInternalAsync>d__14.MoveNext 6 2022-05-30 2022-05-30
Degree of Relevancy NDCG Calculation 1 2021-12-30 2022-09-15
[Request New Content] 10 reasons to move from Traditional to headless CMS 22 2021-07-01 2022-09-24
Upgrade build system 0 2021-11-22 2022-08-02
Duplicating Columns block with ACF blocks duplicates block ID 11 2022-03-10 2022-09-30
Trying to get in touch regarding a security issue 1 2021-09-11 2022-09-24
Typo: Translation Mangers 1 2021-12-18 2022-09-19
Disabled app from central app catalog breaks functionality on deployed webparts 6 2021-12-15 2022-09-08
ebean-parent 12.12.3 not published to Maven Central 3 2021-10-21 2022-08-07
jakarta.enterprise.cdi-api not reachable through javaee.jar 1 2021-12-20 2022-07-21
Install the JS tool to assign codeowners for components PRs 1 2021-11-18 2022-09-10
Yarn should use repository default branch instead of defaulting to master 4 2021-08-17 2022-01-25
tests: add diagnostics test with error highlighting 0 2021-10-20 2022-04-18
使用native runc后,找不到nvidia-smi 2 2021-05-11 2022-09-27
iOS incomingCall.reject on background mode doesn't notify caller 2 2021-05-27 2022-09-20
Shouldn't have to kill porch to get it to reload secrets 1 2022-07-22 2022-09-13
control the accessibility of swagger spec 1 2021-04-16 2022-09-15
Improve default git urls in `netlify init` prompts 0 2022-05-11 2022-08-19
[suggestion] split the composer package into separate components? 47 2015-10-30 2022-09-24
Barbara should care about correctness 2 2021-04-14 2022-09-27
Can no longer ssh into a manager node 3 2017-12-13 2022-08-18
Mullvad integration has no config 8 2021-10-03 2022-08-06
Update The Dark Token from Anon Club 0 2022-05-02 2022-09-16
Unable to find osqp-eigen 8 2020-01-24 2022-09-15
Trying to access `.metadata.values` -> This value does not have any attributes. 1 2021-06-28 2022-09-27
Choose a single location for examples 11 2021-12-09 2022-09-25
bug: 2 apisix-ingress-controller,one is normal and another always is starting 20 2021-09-07 2022-09-18
SAML integration with Office 365 (Azure AD) 6 2015-09-04 2022-09-27