13 lines
1,011 B
HTML
Executable file
13 lines
1,011 B
HTML
Executable file
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/ng/cpi.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Bad Copy</code>
|
|
<div><span class="hint">error in component <code ng:non-bindable="">ng</code>
|
|
</span>
|
|
</div>
|
|
</h1>
|
|
<div><pre class="minerr-errmsg" error-display="Can't copy! Source and destination are identical.">Can't copy! Source and destination are identical.</pre>
|
|
<h2 id="Description">Description</h2>
|
|
<div class="description"><div class="ng-page ng-cpi-page"><p>This error occurs when attempting to copy an object to itself. Calling <a href="api/angular.copy"><code>angular.copy</code></a> with a <code>destination</code> object deletes
|
|
all of the elements or properties on <code>destination</code> before copying to it. Copying
|
|
an object to itself is not supported. Make sure to check your calls to
|
|
<code>angular.copy</code> and avoid copying objects or arrays to themselves.</p>
|
|
</div></div>
|
|
</div>
|