#Export a function from within a .ts component

1 messages · Page 1 of 1 (latest)

crude tartan
#

as the title says i have a function being defined in a component that i would like to call from another component. atm i tried adding export function, but i’m currently getting an error on the function keyword saying it’s unexpected. is this possible to do?

muted raft
#

Can you provide more details about the goals of this function? it'll help to answer.

#

Why is it defined in a component? Why do the other component need it?

crude tartan