maxime1992 / angular-ngrx-starter

An opiniated Angular setup based on @angular/cli to kickstart an ngrx project
https://maxime1992.github.io/angular-ngrx-starter/
64 stars 8 forks source link

Is there a simple example that mimics communication between sibling components? #20

Closed josoroma-zz closed 6 years ago

josoroma-zz commented 6 years ago

Hi Hackers!

In order to make sense of the communication between components, I am looking for a simple example, one that mimics the old and problematic emit and broadcast communication but this time using ngrx.

For example:

On click event Component 1 sends an ID Param to the method of another component => Component 2, so Component 2 re-loads a listing table based on the ID Param previously sent by Component 1.

Thanks a bunch!

maxime1992 commented 6 years ago

Hi @josoroma.

You're probably mixing concepts here this is not related to ngrx, but more an rxjs problem.

That said, it has nothing to do with the project and I invite you to search on stackoverflow where this question has been answered multiple times.

Closing as not related to the repo.