Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

event.preventdefault() in angular

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

<!-- AngularJS -->
<button ng-click="$event.preventDefault()"></button>
 
PREVIOUS NEXT
Tagged: #angular
ADD COMMENT
Topic
Name
5+5 =