aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/$resource/badmember.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/error/$resource/badmember.ngdoc')
-rw-r--r--docs/content/error/$resource/badmember.ngdoc27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/content/error/$resource/badmember.ngdoc b/docs/content/error/$resource/badmember.ngdoc
new file mode 100644
index 00000000..4a61eb9b
--- /dev/null
+++ b/docs/content/error/$resource/badmember.ngdoc
@@ -0,0 +1,27 @@
+@ngdoc error
+@name $resource:badmember
+@fullName Syntax error in param value using @member lookup
+@description
+
+Occurs when there is a syntax error when attempting to extract a param
+value from the data object.
+
+Here's an example of valid syntax for `params` or `paramsDefault`:
+
+````javascript
+{
+ bar: '@foo.bar'
+}
+````
+
+The part following the `@`, `foo.bar` in this case, should be a simple
+dotted member lookup using only ASCII identifiers. This error occurs
+when there is an error in that expression. The following are all syntax
+errors
+
+ | Value | Error |
+ |---------|----------------|
+ | `@` | Empty expression following `@`. |
+ | `@1.a` | `1` is an invalid javascript identifier. |
+ | `@.a` | Leading `.` is invalid. |
+ | `@a[1]` | Only dotted lookups are supported (no index operator) |