0

I would like to get Select box click event in angular2. I don't want to get change event.

Ex:- Select box has two options(Male and Female), first i select male. Next time also i will select male only in this case changEvent will not help us.

Here i would like to get only selectEvent irrespective of the value change.

ayyappa maddi
  • 854
  • 3
  • 10
  • 18

1 Answers1

0

Are you setting the initial value to male in your component?

Example:

public gender: string = 'male';

Also see here:

Angular 2 Dropdown Options Default Value

Erica Grant
  • 245
  • 4
  • 12