ember.js - Injecting controllers as a service in EmberJS? -
i have controller, isn't reachable route special tasks. controller used many routes these tasks.
at moment use controllerfor() it.
but since used service other controllers want add every route di.
i tried following in em.application.initializer
app.register('workspacertc:workspace', app.workspacecontroller); app.inject('route', 'workspace', 'workspacertc:workspace');   which didn't work.
how correctly inject controllers in ember.js?
 
 
  
Comments
Post a Comment