aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ng/cpi.ngdoc
blob: 5d41ee641fa7ec204a9b18f6f8a08302e817222b (plain)
1
2
3
4
5
6
7
8
9
10
@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.