Inject service into a utility Ember-cli ??
I have an Ember utility which makes an ajax call using Ember.$.ajax. But when I get an unauthorised response from the server I want to invalidate the session. For that, I need to access Session service which I am unable to access in utility.
In the following link, it tells how to use util inside service not service inside util http://ift.tt/2pRYxSp
Aucun commentaire:
Enregistrer un commentaire