# Why Share Data Between Components?

Inputs and outputs only connect parents and children. When components far apart need the same data, such as a cart shown in the header and filled from a product page, passing it through every component in between gets messy. A shared service holds it in one place instead.

![Cheat sheet: Why Share Data Between Components?](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/996ccc4ee7724bb38337e071f6d6f3d3.webp)

- Category: Angular
- Level: Journeyman
- Tags: angular, Prop Drilling, Single Source of Truth
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/angular-services-why-share-data-between-components-cheat-sheet
