Get current value when change select option - Angular2

前端 未结 6 1521
走了就别回头了
走了就别回头了 2021-01-31 08:00

I\'m writing an angular2 component and am facing this problem.

Description: I want to push an option value in select selector to its handler when the

6条回答
  •  长情又很酷
    2021-01-31 08:36

    For me, passing ($event.target.value) as suggested by @microniks did not work. What worked was ($event.value) instead. I am using Angular 4.2.x and Angular Material 2

    
    

提交回复
热议问题