angular_analyzer_plugin
angular_analyzer_plugin copied to clipboard
Warn on @Output()s named the same as a built in event
I had a template like this
<my-clickable-component (click)="doSomething()">
When clicking on my-clickable-component, doSomething() gets called twice. One subscription is via my @Output() and the other because of the built in support for click events. It took a long time to figure this out. It would be great if the analyzer warned when declaring an @Output() that's named the same as a built in event.
Hi @brianopp , sure - we can take a look at this scenario and provide some way to provide a meaningful message.