...

/

Introduction to Controllers

Introduction to Controllers

Get an overview of the controllers in Ember and their relationship with routes.

Introduction

The controller handles the events of our templates and components. We can define actions, attributes, and URL query parameters in controllers. Controllers are paired with the route using the same name. The route passes a single property to a controller called model, and this property returns the value of the route model() method. The model ...