Component - Route Action

How to handle a component’s action inside a route ?