Answer the question
In order to leave comments, you need to log in
How to pass actions to child components in ember.js?
Hello. In the ember, you can delegate events to the component action=(action "Send"), and the controller's Send event is fired from the component by the action event. But when the recursive components start, the events are not processed, the system writes An action named 'InAction' was not found in .
index.hbs
{{test-component name=name children=children action=(action "InAction")}}
test-component.hbs
{{ name }}
{{#each children as |child|}}
{{test-component name=child.name children=child.children action=(action "InAction")}}
{{/each}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question