Site editor

Contextual components

Contextual components

Use this powerful feature to write better component interfaces

Subscribe to watch
iOSSpinner

Description

In this video series, we'll learn how to use the powerful Contextual components feature, added in Ember 2.3, to build reusable and expressive components.

Components are the building blocks of Ember applications. They let you encapsulate styling, data and behavior into single cohesive units. But often you run into situations where multiple components need to share data or interact with each other.

Contextual components were added to Ember for just this reason. We'll see how they let us write more expressive components, while keeping complex implementation details hidden. We'll also discuss the tradeoffs involved when using them.