Latest web development tutorials

AngularJS ng-keyup command

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

Release the button code execution:

<Input ng-keyup = "count = count + 1" ng-init = "count = 0" />

<H1> {{count}} </ h1>

try it"

Definition and Usage

ng-keyup command is used to tell AngularJS operation required on the specified HTML element button is released.

ng-keyup command does not overwrite the original elements onkeyup event, the event is triggered, ng-keyupexpression and native onkeyup event will be executed.

Button tap sequence of events:

  1. Keydown
  2. Keypress
  3. Keyup

grammar

<Element ng-keyup = "expression "> </ element>

<Input>, <select>, <textarea>, and other editable elements support this instruction.


Parameter Value

value description
expression Release the button expression execution.

AngularJS Reference Manual AngularJS Reference Manual