|
37 | 37 | */
|
38 | 38 | var ngEventDirectives = {};
|
39 | 39 | forEach(
|
40 |
| - 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur'.split(' '), |
| 40 | + 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '), |
41 | 41 | function(name) {
|
42 | 42 | var directiveName = directiveNormalize('ng-' + name);
|
43 | 43 | ngEventDirectives[directiveName] = ['$parse', function($parse) {
|
@@ -294,3 +294,48 @@ forEach(
|
294 | 294 | * @example
|
295 | 295 | * See {@link ng.directive:ngClick ngClick}
|
296 | 296 | */
|
| 297 | + |
| 298 | +/** |
| 299 | + * @ngdoc directive |
| 300 | + * @name ng.directive:ngCopy |
| 301 | + * |
| 302 | + * @description |
| 303 | + * Specify custom behavior on copy event. |
| 304 | + * |
| 305 | + * @element window, input, select, textarea, a |
| 306 | + * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon |
| 307 | + * copy. (Event object is available as `$event`) |
| 308 | + * |
| 309 | + * @example |
| 310 | + * See {@link ng.directive:ngClick ngClick} |
| 311 | + */ |
| 312 | + |
| 313 | +/** |
| 314 | + * @ngdoc directive |
| 315 | + * @name ng.directive:ngCut |
| 316 | + * |
| 317 | + * @description |
| 318 | + * Specify custom behavior on cut event. |
| 319 | + * |
| 320 | + * @element window, input, select, textarea, a |
| 321 | + * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon |
| 322 | + * cut. (Event object is available as `$event`) |
| 323 | + * |
| 324 | + * @example |
| 325 | + * See {@link ng.directive:ngClick ngClick} |
| 326 | + */ |
| 327 | + |
| 328 | +/** |
| 329 | + * @ngdoc directive |
| 330 | + * @name ng.directive:ngPaste |
| 331 | + * |
| 332 | + * @description |
| 333 | + * Specify custom behavior on paste event. |
| 334 | + * |
| 335 | + * @element window, input, select, textarea, a |
| 336 | + * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon |
| 337 | + * paste. (Event object is available as `$event`) |
| 338 | + * |
| 339 | + * @example |
| 340 | + * See {@link ng.directive:ngClick ngClick} |
| 341 | + */ |
0 commit comments