aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ng
diff options
context:
space:
mode:
authorKen Sheedlo2013-08-01 15:11:10 -0700
committerIgor Minar2013-08-07 21:36:59 -0700
commite4b6a1eaa4a432b0082c7abbff8f4bb169cf846e (patch)
treec7db8a10cfa64808ac3d750d7d434cbf05c5ea64 /docs/content/error/ng
parent306a613440175c7fd61d1d6eb249d1e53a46322e (diff)
downloadangular.js-e4b6a1eaa4a432b0082c7abbff8f4bb169cf846e.tar.bz2
docs(minerr): fill in error message descriptions
Errors I've documented so far: - `$injector:cdep` - `$injector:itkn` - `$injector:modulerr` - `$injector:nomod` - `$injector:pget` - `$injector:unpr` - `ng:areq` - `ng:cpi` - `ng:cpws` - `ngModel:noass` Closes #3430
Diffstat (limited to 'docs/content/error/ng')
-rw-r--r--docs/content/error/ng/areq.ngdoc4
-rw-r--r--docs/content/error/ng/cpi.ngdoc6
-rw-r--r--docs/content/error/ng/cpws.ngdoc6
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