# Pipe

Pipes are simple functions that accept an input value and return a transformed value. They're easy to apply within template expressions, using the **pipe operator (**`|`**)**

```
<div>Title through uppercase pipe: {{title | uppercase}}</div>
```

* You can chain expressions through multiple pipes.

```
<div>
  Title through a pipe chain:
  {{title | uppercase | lowercase}}
</div>
```

* You can also [apply parameters](https://angular.io/guide/pipes#parameterizing-a-pipe) to a pipe

```
<div>Birthdate: {{currentHero?.birthdate | date:'longDate'}}</div>
```

## Angular Pipes

[Pipe API List ](https://angular.io/api?type=pipe)

Date

```markup
<!--output '2015-06-15 05:03 PM GMT+9'-->
<p>The custom date is {{today | date:'yyyy-MM-dd HH:mm a z':'+0900'}}</p>
```

## Self-define Pipes

A class with the `@Pipe` decorator defines a function that transforms input values to output values for display in a view.

\[R] <https://angular.io/guide/pipes>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fancyloves.gitbook.io/frontendtech/angularjs/fundamentals/pipe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
