#Function in component
18 messages · Page 1 of 1 (latest)
what is the problem exactly?
whas is the problem with directly calling it?
oh you define your function in a component?
the function is in components/player.vue but i want to call the function in pages/libary.vue
probably It's better to define that function in a other file
the thing is if the user presses play in the libary i want to show the music image/name/author in the player. so how would that work?
If you need that data in multiple places then use a store
like pinia
I don't know if it's possible to export functions defined in components but even If it's I've never seen someone do it
so probably not good idea either
hm ok then ill find another way
use pinia
or events ?