From 250c54a14c4a8a4870b806a33cf9ab56b257bf5a Mon Sep 17 00:00:00 2001 From: Uri Goldshtein Date: Fri, 27 Sep 2013 16:07:54 +0300 Subject: [PATCH] docs(angular.copy): add a form example with the 2 possible arguments --- src/Angular.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/Angular.js b/src/Angular.js index 740cd6911427..efb115265506 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -609,6 +609,42 @@ function isLeafNode (node) { * @param {(Object|Array)=} destination Destination into which the source is copied. If * provided, must be of the same type as `source`. * @returns {*} The copy or updated `destination`, if `destination` was specified. + * + * @example + + +
+
+ Name:
+ E-mail:
+ Gender: male + female
+ + +
+
form = {{user | json}}
+
master = {{master | json}}
+
+ + +
+
*/ function copy(source, destination){ if (isWindow(source) || isScope(source)) {