Angular - Is there list of HostListener-Events?

后端 未结 5 708
鱼传尺愫
鱼传尺愫 2020-12-23 12:28

I am using a hostlistener in a directive to detect \"blur\"- and \"keyup\"-events. Now I need to detect changes in the input-element the directive sits on. I tried

5条回答
  •  青春惊慌失措
    2020-12-23 13:24

    The change event is applied to selects.

    If you tried with the input event, and it still doesn't work, then your directive is the issue.

    Did you imported / exported it ? Do you have any console errors ? Is another event fired from your directive ?

提交回复
热议问题