Chapter 5. Ember Controllers

In this chapter, we'll cover the following recipes:

  • Storing application properties
  • Handling actions in controllers
  • Working with transitions
  • Managing dependencies between controllers

Introduction

Controllers in Ember.js are similar to components. They can encapsulate code, handle actions, and have properties. In addition, controllers can transition to different parts of the application and retrieve information from other controllers.

In the near future, controllers will be completely replaced by components. However, until this happens, it's good to have some basic understanding on how controllers work.

Get Ember.js Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.