DEV Community

Discussion on: How to Programmatically Trigger 'Click' Event in Angular 4 & 5

Collapse
 
viktorkukurba profile image
Viktor

In this case you've missed $event.stopPropagation(), which could be important in some cases.
So, method still can make sense in this case if you'd like to keep your html clean.