Get data from component


#1

Actions can be triggered from components, but how would you call an action on a component?

I have a component (SVG drawing tool) and I want to get the image from it as a png. This conversion process is not the fastest on earth so I can’t really bind anything to this. What would be optimal is for the parent of the component to be able to call an export function on it.

In React, there is this notion of _ref that let’s you keep a reference to the components you initialize on the dom.

How would you do this in Ember? My not so great solution is to have a shared object that knows both the parent and the component and use this object to trigger the export from the parent.