mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-18 12:08:17 +08:00
docs(ngKeyup): improve example
show implicit `$event` argument
This commit is contained in:
committed by
Brian Ford
parent
3252a50165
commit
dd7b508326
@@ -262,8 +262,13 @@ forEach(
|
||||
* @example
|
||||
<example>
|
||||
<file name="index.html">
|
||||
<input ng-keyup="count = count + 1" ng-init="count=0">
|
||||
key up count: {{count}}
|
||||
<p>Typing in the input box below updates the key count</p>
|
||||
<input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
|
||||
|
||||
<p>Typing in the input box below updates the keycode</p>
|
||||
<input ng-keyup="event=$event">
|
||||
<p>event keyCode: {{ event.keyCode }}</p>
|
||||
<p>event altKey: {{ event.altKey }}</p>
|
||||
</file>
|
||||
</example>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user