This is connected to an cookbook example : https://angular.io/docs/ts/latest/cookbook/component-communication.html#!#bidirectional-service
I made a service with an observable, so components that are not directly connected can communicate.
Everything works nicely when there is an actual grandchild who is hooked to the observable and a parent who is listening.
My problem appears when I try to create the grandchild without a parent who is listening ("No provider for service"
).
Like in the cookbook, the service should be a provider only inside a component that is listening providers: [MissionService]
.