Chris
Chris

Reputation: 3174

Global controller for application in Ember Js

Tile says it all! How would one create a global controller which would work across an entire ember app? This way I can create actions which work across multiple views!

Thanks.

C

Upvotes: 4

Views: 970

Answers (1)

Michael Johnston
Michael Johnston

Reputation: 5330

ApplicationController IS that controller. It's already being anonymously created, just extend it and put what you need in it.

However, why do you want to put global actions in a controller? A better place is probably in ApplicationRoute

Upvotes: 3

Related Questions