---
title: "Discussion on \"How to Share Data Between Components in Angular Without a Parent-Child Relationship\" | Hashnode"
description: "Discussion on \"How to Share Data Between Components in Angular Without a Parent-Child Relationship\". Learn how to share data between Angular components without a parent-child relationship using services. Ideal for robust, modular applications"
url: "https://hashnode.com/posts/how-to-share-data-between-components-in-angular-without-a-parent-child-relationship/66d124851d307735012fb1d8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Share Data Between Components in Angular Without a Parent-Child Relationship](https://nazislam.hashnode.dev/how-to-share-data-between-components-in-angular-without-a-parent-child-relationship?utm_source=hashnode&utm_medium=feed)

Learn how to share data between Angular components without a parent-child relationship using services. Ideal for robust, modular applications

Aug 30, 2024 · 6 min read · nazislam.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#rxjs](https://hashnode.com/tag/rxjs)

## Written by

[Naz Islam](https://hashnode.com/@nazislam)

@nazislam · Dallas, TX

  
[View profile](https://hashnode.com/@nazislam)

I am a MEAN Stack Developer having vast experience in Javascript, Typescript, Angular, NodeJS, Express, MongoDB.

I am a MEAN Stack Developer having vast experience in Javascript, Typescript, Angular, NodeJS, Express, MongoDB. Currently working on building my first SaaS app zenfoc.us.

## Responses 3

Markdown supported · ⌘↵ to post

[Hashbyt](https://hashnode.com/@HashbytforSaaS)

[Sep 23, 2025](https://hashnode.com/posts/how-to-share-data-between-components-in-angular-without-a-parent-child-relationship/66d124851d307735012fb1d8/comment/68d29b5c51e67af2851e2f52)

Great use of BehaviorSubject for decoupled component communication! This pattern ensures scalable and maintainable UIs, a key focus at Hashbyt. Have you explored extending this for real-time multi-user scenarios?

[Maneesh Kumar](https://hashnode.com/@kontactmaneesh)

[Oct 1, 2024](https://hashnode.com/posts/how-to-share-data-between-components-in-angular-without-a-parent-child-relationship/66d124851d307735012fb1d8/comment/66fb92d9162af4f304c6a382)

nice one

[Damien](https://hashnode.com/@Acerola)

[Sep 10, 2024](https://hashnode.com/posts/how-to-share-data-between-components-in-angular-without-a-parent-child-relationship/66d124851d307735012fb1d8/comment/66e04256fcf20887c7b99256)

Good ideas. The execution is kind of okay. You should have an object that holds the account name and the related amount. So that when you use your "updateAmount" method, you won't have to compare strings. It's adding complexity for nothing. Just pass the amount as a parameter. Good article tho. Keep going !
