Easy Tutorial
❮ Angularjs Examples Angularjs Directives ❯

AngularJS ng-keyup Directive

AngularJS Reference Manual


AngularJS Example

Code executed when a key is released:


Definition and Usage

The ng-keyup directive is used to tell AngularJS what action to perform when a key is released on a specified HTML element.

The ng-keyup directive does not override the element's native onkeyup event. When the event is triggered, both the ng-keyup expression and the native onkeyup event will be executed.

The sequence of key events:


Syntax

The directive is supported by <input>, <select>, <textarea>, and other editable elements.


Parameter Values

Value Description
expression The expression to be executed when a key is released.

AngularJS Reference Manual

❮ Angularjs Examples Angularjs Directives ❯