Where would I prefer to use a view over a component?
This depends clearly on your use case. But as a rule of thumb, if you need in your view directly access to it's surrounding context like the controller nor route use a Ember.View, but if you want to isolate the view and pass in only the information that it needs to work making it agnostically of the context and much more reusable, use a Ember.Component.
As already mentioned Ember.Component extends from Ember.View and therefore inherits all of Ember.View attributes and capabilities. But it's the differences to an Ember.View which makes an Ember.Component unique of it's kind.
Your new post is loading...