/DOM-Events

DOM events carry a payload of information that may be useful to the component. This section shows how to bind to the keyup event of an input box to get the user's input after each keystroke. The following code listens to the keyup event and passes the entire event payload ( $event ) to the component event handler.

Primary LanguageJavaScript

DOM-Events

DOM events carry a payload of information that may be useful to the component. This section shows how to bind to the keyup event of an input box to get the user's input after each keystroke. The following code listens to the keyup event and passes the entire event payload ( $event ) to the component event handler.