Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6752337

Browse files
bhovhannesNarretz
authored andcommitted
docs(guide/Expressions): note that new operator is unavailable
You cannot create new objects inside Angular expressions. For example: {{ new Date() }} expression fails.
1 parent 48ad748 commit 6752337

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/guide/expression.ngdoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ Angular expressions are like JavaScript expressions with the following differenc
3535
* **No RegExp Creation With Literal Notation:** You cannot create regular expressions
3636
in an Angular expression.
3737

38-
* **No Comma And Void Operators:** You cannot use `,` or `void` in an Angular expression.
38+
* **No Object Creation With New Operator:** You cannot use `new` operator in an Angular expression.
39+
40+
* **No Comma And Void Operators:** You cannot use `,` or `void` operators in an Angular expression.
3941

4042
* **Filters:** You can use {@link guide/filter filters} within expressions to format data before
4143
displaying it.

0 commit comments

Comments
 (0)