Answers for "event.preventdefault() in typescript"

17

js preventdefault

function(event) {
  event.preventDefault();
}
Posted by: Guest on December-10-2020
0

event.preventdefault() in angular

<!-- Angular 2+ -->
<button (click)="$event.preventDefault()"></button>

<!-- AngularJS -->
<button ng-click="$event.preventDefault()"></button>
Posted by: Guest on April-08-2021

Code answers related to "event.preventdefault() in typescript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language