Chapter 6. Ember Components

In this chapter, you'll learn the following recipes:

  • Using components in an application
  • Using events in components
  • Implementing actions in components
  • Passing properties to a component
  • Using yield with components

Introduction

Components are a major feature of Ember.js. With components, you can encapsulate code and create widgets and custom tags. In addition, you can pass properties to a component, handle events and actions, and wrap content inside of it. Often, it can take the place of your controller.

Components align closely to the W3C custom elements specification. The W3C specification is still in consideration, although, given enough time, it will probably be adopted by the Web.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset