mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 12:40:03 +02:00
docs: add pipe precedence content angular (#6292)
This commit is contained in:
@@ -1 +1,14 @@
|
||||
# Pipes Precedence
|
||||
# Pipes Precedence
|
||||
|
||||
The pipe operator has a higher precedence than the JavaScript ternary operator.
|
||||
|
||||
You should always use parentheses to be sure Angular evaluates the expression as you intend.
|
||||
|
||||
```
|
||||
(condition ? a : b) | pipe
|
||||
```
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Precedence](https://angular.dev/guide/pipes/precedence)
|
||||
- [@article@What is the precedence between pipe and ternary operators?](https://iq.js.org/questions/angular/what-is-the-precedence-between-pipe-and-ternary-operators)
|
||||
|
Reference in New Issue
Block a user