lundi 1 juin 2015

How do I inject the simple auth session into an adapter?

I have an adapter that queries a url using user specific data. I need a way to get data from the simple auth session to the adapter.

I tried to inject the session into the adapter Adapter

session: Ember.inject.service('session'),

But this is throwing an error

Error while processing route: videos.index Attempting to inject an unknown injection: service:session Error: Attempting to inject an unknown injection: service:session




Aucun commentaire:

Enregistrer un commentaire