mardi 6 septembre 2016

How to inject two services on each other in emberjs?

Suppose I have a two service X and Y. I want to use methods of both service in each other. If i inject service using intializer like this

application.inject('service:X', 'Y', 'service:Y');
application.inject('service:Y', 'X', 'service:X');

it will get an exception

Uncaught RangeError: Maximum call stack size exceeded

Any suggestion to do that it will be very helpful?




Aucun commentaire:

Enregistrer un commentaire