I have an app where I have an upload component where I can upload a file. It is embedded in the body.component
.
On upload, it should use a function (e.g. BodyComponent.thefunction()
) of the parent component (do a call to update the data): but only if it the parent is specifically the body.component
. The upload might also be used elsewhere with different behavior.
Something like parent(this).thefunction()
, how to do that?