I have an Ember 2.3.0 application and a service called ui.js
. I constantly use this service across many routes, controllers and components. I normally inject the service manually into each route, controller and component by doing this:
ui: Ember.inject.service()
However, it's becoming very tedious to keep injecting it manually. How do I automatically make the UI service available to all routes, controllers and components?
Aucun commentaire:
Enregistrer un commentaire