docs(ngKeyup): improve example

show implicit `$event` argument
This commit is contained in:
ImaginaryDevelopment
2014-05-28 14:02:52 -04:00
committed by Brian Ford
parent 3252a50165
commit dd7b508326

View File

@@ -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>
*/