ng-keyup
Handler for keyup event
Description
The ng-keyup directive allows you to specify custom behavior when releasing
keys, regardless of whether they produce a character value.
Parameters
ng-keyup
Type: Expression
Description: Expression to evaluate upon keyup event. KeyboardEvent object is available as
$event.Example:
<div ng-keyup="$ctrl.greet($event)"></div>
Demo
<section ng-app>
<input
type="text"
ng-keyup="count = count + 1"
ng-init="count = 0"
placeholder="Click here, then press down a key."
/>
Keyup {{ count }} times
</section>
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.