I’d like to be able to bind an action to a component in the same way that it can be bound to an element.
One would assume that action
, like class
, would engage special behaviour as a reserved word in the WTFBars DSL, but apparently it is simply passed through as a property reference (twiddle).
So I could hack the Ember defaults by reopening the base Component pseudo-class and extending it with special behaviour to bind the action to its root node, but this would seem all sorts of fragile.
Any idea on good approaches to this?