onReset method

  1. @HostListener('reset')
void onReset (Event event)
@HostListener('reset'), inherited

Implementation

@HostListener('reset')
void onReset(Event event) {
  reset();
  event?.preventDefault();
}