re: How to Programmatically Trigger 'Click' Event in Angular 4 & 5 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Two things I'd like to point out: You should always use a button instead of a link if you just need to trigger an action Instead of the openFile...
 

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.

code of conduct - report abuse