> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Counter

A counter with increment, decrement and reset buttons, plus a label derived from the count. Look here for `computed()` and the UI components in a small app.


## What it shows

- **`signal()` and `computed()`** — `label` recomputes whenever `count` changes. See [Signals and change detection](/guide/concepts/signals.md).
- **`update()` and `set()`** — the handlers change state, and Angular re-renders after each one.
- **UI components** — [Button](/dolan/button.md) and [Card](/dolan/card.md) from the [UI components](/dolan/index.md). A button reports taps through its `(pressed)` output.
- **Flex layout** — the button row sets `display: flex` with the `flex flex-row` classes. Without it, [Lynx](/guide/glossary.md#lynx) stacks children vertically. See [CSS on Lynx](/guide/styling/index.md).

## Related

- [Hello World](/examples/hello-world.md)
- [Todo List](/examples/todo-list.md)
