Can components handle events like Views do?


#1

Hi,

From what I see from the docs, it looks like views can handle default browser events (like click) but components cannot (*). Is this true and does it mean I can’t use components but only views to encapsulate logic that manipulates browser events?

Thanks, Ron

(*) Event names listed here http://emberjs.com/api/classes/Ember.View.html#toc_event-names are not present in component documentation


How to handle keyboard events without the View class?
#2

Ember.Component extends Ember.View so any method or property the view has is also available on an Ember Component. (Including events)