docs($parse): add missing error documents

This commit is contained in:
Pete Bacon Darwin
2018-02-19 19:31:43 +00:00
parent 3eabaab009
commit f1c164c92f
2 changed files with 23 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
@ngdoc error
@name $parse:esc
@fullName Value cannot be escaped
@description
Occurs when the parser tries to escape a value that is not known.
This should never occur in practice. If it does then that indicates a programming
error in the AngularJS `$parse` service itself and should be reported as an issue
at https://github.com/angular/angular.js/issues.
+13
View File
@@ -0,0 +1,13 @@
@ngdoc error
@name $parse:lval
@fullName Trying to assign a value to a non l-value
@description
Occurs when an expression is trying to assign a value to a non-assignable expression.
This can happen if the left side of an assigment is not a valid reference to a variable
or property. E.g. In the following snippet `1+2` is not assignable.
```
(1+2) = 'hello';
```