angular_analyzer_plugin icon indicating copy to clipboard operation
angular_analyzer_plugin copied to clipboard

Warn on @Output()s named the same as a built in event

Open brianopp opened this issue 8 years ago • 1 comments

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.

brianopp avatar Apr 05 '17 23:04 brianopp

Hi @brianopp , sure - we can take a look at this scenario and provide some way to provide a meaningful message.

mk13 avatar Apr 09 '17 03:04 mk13