feat(compiler): support exponentiation operator in templates (#59894)

Adds support for the exponentiation (`**`) operator in templates

Ex:
```
@Component {
  template: '{{2 ** 3}}'
}
```

PR Close #59894
This commit is contained in:
Miles Malerba
2025-02-10 17:56:51 +00:00
committed by kirjs
parent 0361c2d81f
commit f2d5cf7edd
21 changed files with 138 additions and 18 deletions
@@ -53,6 +53,7 @@ Angular supports the following operators from standard JavaScript.
| Multiply | `41 * 6` |
| Divide | `20 / 4` |
| Remainder (Modulo) | `17 % 5` |
| Exponentiation | `10 ** 3` |
| Parenthesis | `9 * (8 + 4)` |
| Conditional (Ternary) | `a > b ? true : false` |
| And (Logical) | `&&` |