event listener not working in angular( can't understand a line of code)

Viewed 20

I know vue. Everything seems to be similar in vue with angular.In HTML template I see the following event listener:

(mousedown)="mouseDown(); false;"

what is the purpose of false here?

1 Answers

this is the equivalent of calling event.preventDefault(); just shorter

Related