From fc05f5e701f77012d54f87facb5a83d56996c7f1 Mon Sep 17 00:00:00 2001 From: Uri Goldshtein Date: Fri, 27 Sep 2013 16:07:54 +0300 Subject: docs(angular.copy): add an example with the two possible arguments Closes #4179 --- src/Angular.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 740cd691..efb11526 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)) { -- cgit v1.2.3