Hello,
I have a @click event for a button inside component. That calls a function defined inside my app.js file. I’ve just learned that it can only call functions from inside the component scope.
Is there a solution to be able to call a function from the app.js file?
Best regards;
This worked:
@click=${() => MyFunction(params)}
nothing else worked
1 Like