O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Differentiating components from views

Before we proceed, you might be wondering why components and views are different since both wrap templates. Well, components are indeed a subclass of views, but their controller context is isolated from the rest of the application. While application controllers can be assigned to any view, the defined component classes cannot be assigned to other components or views. Components define an interface the desired context must implement, and they are therefore more reusable and modular, as we will see in the next sections.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required