angular.js/docs/content/error/ng/cpi.ngdoc

10 lines
421 B
Text
Raw Permalink Normal View History

2013-07-13 00:42:27 +00:00
@ngdoc error
@name ng:cpi
@fullName Bad Copy
@description
This error occurs when attempting to copy an object to itself. Calling {@link
api/angular.copy angular.copy} with a `destination` object deletes
all of the elements or properties on `destination` before copying to it. Copying
an object to itself is not supported. Make sure to check your calls to
`angular.copy` and avoid copying objects or arrays to themselves.