How to send an action from a Ember component to a View that wraps it?

前端 未结 1 1148

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 no

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 19:45

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

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

    0 讨论(0)
提交回复
热议问题