# tap

*noun*

say it: **“TAP”** **/tæp/**

An RxJS operator that does something with each value, such as saving it, and passes it on unchanged.

## What is **tap** in Angular?

**tap** — An RxJS operator for side effects: it runs a function with each value going through an Observable, such as saving a token, and passes the value on unchanged.

```typescript
login(form: LoginForm) {
  return this.http.post<LoginResult>('/api/login', form).pipe(
    tap(result => localStorage.setItem('token', result.token)),
  );
}
```

## In a sentence

- “**tap** saves the token to local storage as the login response passes by.”

Level: Journeyman · [More Angular terms at this level](https://www.ask-codey.com/glossary?category=angular&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/tap
