diff options
Diffstat (limited to 'docs/content/error/ng')
| -rw-r--r-- | docs/content/error/ng/areq.ngdoc | 4 | ||||
| -rw-r--r-- | docs/content/error/ng/cpi.ngdoc | 6 | ||||
| -rw-r--r-- | docs/content/error/ng/cpws.ngdoc | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/docs/content/error/ng/areq.ngdoc b/docs/content/error/ng/areq.ngdoc index ade8a5ba..fbc45d8a 100644 --- a/docs/content/error/ng/areq.ngdoc +++ b/docs/content/error/ng/areq.ngdoc @@ -2,3 +2,7 @@ @name ng:areq @fullName Bad Argument @description + +AngularJS often asserts that certain values will be present and truthy using a +helper function. If the assertion fails, this error is thrown. To fix this problem, +make sure that the value the assertion expects is defined and truthy.
\ No newline at end of file diff --git a/docs/content/error/ng/cpi.ngdoc b/docs/content/error/ng/cpi.ngdoc index 95b30024..5d41ee64 100644 --- a/docs/content/error/ng/cpi.ngdoc +++ b/docs/content/error/ng/cpi.ngdoc @@ -2,3 +2,9 @@ @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.
\ No newline at end of file diff --git a/docs/content/error/ng/cpws.ngdoc b/docs/content/error/ng/cpws.ngdoc index 2f7a9c5b..59b9ffac 100644 --- a/docs/content/error/ng/cpws.ngdoc +++ b/docs/content/error/ng/cpws.ngdoc @@ -2,3 +2,9 @@ @name ng:cpws @fullName Copying Window or Scope @description + +Copying Window or Scope instances is not supported because of cyclical and self +references. Avoid copying windows and scopes, as well as any other cyclical or +self-referential structures. Note that trying to deep copy an object containing +cyclical references that is neither a window nor a scope will cause infinite +recursion and a stack overflow.
\ No newline at end of file |
