From fb17eaf5086b655f88a122a6247eb93aa2a3eee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=A9dney=20Yuri?= Date: Fri, 17 Oct 2014 22:19:24 -0300 Subject: [PATCH] docs(angular.extend): explanation of deep copy. It is very common to see many developers confused about it. --- src/Angular.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Angular.js b/src/Angular.js index d81da8a186aa..d75489be147f 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -340,6 +340,7 @@ function setHashKey(obj, h) { * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s) * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`. + * Note: Keep in mind that `angular.extend` does not support recursive merge (deep copy). * * @param {Object} dst Destination object. * @param {...Object} src Source object(s).