e.preventDefault() angular 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>