Quantcast
Viewing all articles
Browse latest Browse all 4838

Bind actions to component root from calling context

@barneycarroll wrote:

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles