Skip to content Skip to sidebar Skip to footer

How To Send An Action From A Ember Component To A View That Wraps It?

I know the sendAction will send actions from a component to the controller associated with the template where it has been placed, but in my case the component is not placed directl

Solution 1:

Normally you pass target, but the context of a component the property name is targetObject.

{{foo-bar action='actionName' targetObject=view}}

Post a Comment for "How To Send An Action From A Ember Component To A View That Wraps It?"