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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -