docs: fix example for pipe operator precedence by removing extra parenthesis (#58488)

PR Close #58488
This commit is contained in:
Madhu Ranjan 2024-11-03 19:04:57 -05:00 committed by Pawel Kozlowski
parent 3db099c8e6
commit 5c9e2e41e1

View file

@ -138,7 +138,7 @@ The pipe operator has lower precedence than other binary operators, including `+
```angular-html
<!-- firstName and lastName are concatenated before the result is passed to the uppercase pipe -->
{{ (firstName + lastName | uppercase }}
{{ firstName + lastName | uppercase }}
```
The pipe operator has higher precedence than the conditional (ternary) operator.