2018-02-19 19:31:43 +00:00
|
|
|
@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.
|
|
|
|
|
|
2021-03-09 11:56:49 +09:00
|
|
|
This can happen if the left side of an assignment is not a valid reference to a variable
|
2018-02-19 19:31:43 +00:00
|
|
|
or property. E.g. In the following snippet `1+2` is not assignable.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
(1+2) = 'hello';
|
|
|
|
|
```
|