I want to send data from one component to another via service and followed this answer. The problem is, that the data never is received by the receiver component. I also tried the solution of that question. My other idea why there could be something wrong is that I call the important "commands" in a wrong order. As far as I understand there is a particular order when you work with Observables.
- create Observable --> private dataSubject = new Subject();
- call Observable --> subscribe();
- execute Observable --> next();
- dispose --> unsibscribe();
I hope someone can clearify whether I got a wrong understanding of observalbes or if it is just mistake. Thank you!