In this chapter, we will cover the following recipes:
The router in Ember is responsible for changing the state of the application when a user performs an action. This can be anything from the user changing the URL to hitting the back button in the application. Regardless of what action is performed, the route handler is responsible. It takes the current URL and maps it to the correct route so that it can be displayed to the user.
Route handlers take care of rendering templates, loading up the model, and redirecting and transitioning from one route to another. They can also handle actions that occur when the model changes.