For many functions (actions) is should use the Route or the Controller?


#1

Where I should put the code of many actions, it is correct to put them in my Route?

Or I have to use the Controller?

For performances reason…


#2

You should create a mixin.

http://emberjs.com/api/classes/Ember.Mixin.html


#3

Only if he needs the actions in various components/pages…

Controller or route is same same… But I recommend placing them in your Router, since Ember is moving away from controllers. Not placing stuff in the controller and rather in the route will ease the upgrade process once we have routable components, if you ever get to that point with you application. :slight_smile: