I’ve got an ember engine providing a service that’s supposed to be used by the host app to share info to the engine. When I set a value on this service in the host app, this value is lost when I try to access it in the engine’s code.
I put a
debugger statement in the engine’s
constructor method (I use ember-decorators) and it looks like the an engine object is instantiated twice:
lookup is called once on the host app owner, and once on the engine’s owner.
I believe I could work around this issue by creating a new service on the host app and explicitly declaring it in the engine’s dependencies, but I expected a service singleton to cross the host / engine boundary.
What am I missing here ?