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?
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?
Good question.
I think because it should be kept very simple
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
).