4fa214ce32
This commit also adds the missing `isecaf` error page and more tests for assignment to constructors. Fixes #14939 Closes #14951
13 lines
569 B
Plaintext
13 lines
569 B
Plaintext
@ngdoc error
|
|
@name $parse:isecaf
|
|
@fullName Assigning to Fields of Disallowed Context
|
|
@description
|
|
|
|
Occurs when an expression attempts to assign a value on a field of any of the `Boolean`, `Number`,
|
|
`String`, `Array`, `Object`, or `Function` constructors or the corresponding prototypes.
|
|
|
|
Angular bans the modification of these constructors or their prototypes from within expressions,
|
|
since it is a known way to modify the behaviour of existing functions/operations.
|
|
|
|
To resolve this error, avoid assigning to fields of constructors or their prototypes in expressions.
|