mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-19 13:05:57 +08:00
docs(angular.extend): explanation of deep copy.
It is very common to see many developers confused about it. Closes #9672
This commit is contained in:
committed by
Peter Bacon Darwin
parent
e5c53b393b
commit
7fa66348cb
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user