mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: fix example for pipe operator precedence by removing extra parenthesis (#58488)
PR Close #58488
This commit is contained in:
parent
3db099c8e6
commit
5c9e2e41e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue