79214891

Date: 2024-11-22 11:57:15
Score: 0.5
Natty:
Report link

I know this is kind of old question, but I would love to add the answer.

<select class='select-option' 
        (change)='onOptionsSelected($event)'>
    <option class='option' 
    *ngFor='let option of dropDownData' 
    [value]="option.seo_val">{{option.text_val}}</option>
</select>
onOptionsSelected(event: Event): void {
  const value = (event.target as HTMLInputElement).value;
  console.log(value)
  ...
}

Thank you Enjoy

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: C.HA