mercredi 9 mars 2016

Ember Use Mixin OR Service for shared data

I am using Ember 2 in my app.

My question is for sharing data between routes (not simple params which we can do using Query/Path params, but slightly larger data like object info)

What is the best way to do the same; Mixin OR Service ? I want singleton shared instance. I know Ember Service is by default singleton. But is there some way by which we can get singleton shared object using Ember Mixin ?




Aucun commentaire:

Enregistrer un commentaire