Why is input a view rather than controller?


#1

http://emberjs.com/api/classes/Ember.Checkbox.html

Input subclasses view rather than component - why?

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


#2

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.

http://emberjs.com/api/classes/Ember.Component.html


#3

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).