Skip to content

Commit

Permalink
docs: use correct example (angular#57783)
Browse files Browse the repository at this point in the history
PR Close angular#57783
  • Loading branch information
ktcd authored and thePunderWoman committed Sep 11, 2024
1 parent ba386c7 commit 2b3e7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adev/src/content/guide/templates/pipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Angular includes a set of built-in pipes in the `@angular/common` package:
Angular's pipe operator uses the vertical bar character (`|`), within a template expression. The pipe operator is a binary operator– the left-hand operand is the value passed to the transformation function, and the right side operand is the name of the pipe and any additional arguments (described below).

```angular-html
<p>The event will occur on {{ scheduledOn | date }}.</p>
<p>Total: {{ amount | currency }}</p>
```

In this example, the value of `amount` is passed into the `CurrencyPipe` where the pipe name is `currency`. It then renders the default currency for the user’s locale.
Expand Down

0 comments on commit 2b3e7f8

Please sign in to comment.