Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember defining actions, in controller vs in route

Tags:

From official guides:

If the controller does not implement a method with the same name as the action in its actions object, the action will be sent to the router, where the currently active leaf route will be given a chance to handle the action.

So what are pros & cons of defining actions methods in controller and defining actions methods in route? As i can see guides doesn't talk about that. Defining in controller can be "faster" in sense of preventing action bubling.