angular preventdefault on any event code example
Example: event.preventdefault() in angular
<!-- Angular 2+ -->
<button (click)="$event.preventDefault()"></button>
<!-- AngularJS -->
<button ng-click="$event.preventDefault()"></button>
<!-- Angular 2+ -->
<button (click)="$event.preventDefault()"></button>
<!-- AngularJS -->
<button ng-click="$event.preventDefault()"></button>