Why is input a view rather than controller?


Input subclasses view rather than component - why?

If Ember components are supposed to be equivalent to elements why is this not toeing the line?

Good question.

I think because it should be kept very simple :slight_smile:

Component also extend the view, but implement many methods and properties which is not needed for input field.

Probably just because Ember.Component was introduced much later than Ember.Checkbox.

My oppinion is that it should be subclassing Ember.Component for the sake of consistency (even if it’s just a stripped-down version of Ember.View).