onClick method

  1. @HostListener('click')
void onClick()

Implementation

@HostListener('click')
void onClick() {
  _toggleVisibility();
}