Improve this Doc View Source angular.extend

From Get docs
< Function components in ngAngularjs/docs/1.8/api/ng/function/angular.extend

Improve this Doc View Source angular.extend

  1. function in module ng


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). Use angular.merge for this.


angular.extend(dst, src);


Param Type Details
dst Object Destination object.
src Object Source object(s).


Object Reference to dst.

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.