# Subject

An Observable you can push values into yourself.

## What is **Subject**?

A **Subject** is an Observable you can push values into yourself with `next()`. `BehaviorSubject` also remembers its latest value. Signals now cover many of its old uses.

```typescript
private cartCount = new BehaviorSubject(0);
count$ = this.cartCount.asObservable();

add() { this.cartCount.next(this.cartCount.value + 1); }
```

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

Updated: September 27, 2026

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