Linking javascript file to component
What is the best way to link a javascript file to a component?
I want to be able to run functions of the js file in my component, and be able to use $wire inside it, but cant figure out how to link them together. I've done research but there isnt really a good docs that helps me with this.
3 Replies
When looking in repo's of people doing this, they use ax-load-src="getAlpineComponentSrc()"... but im not sure how this works
Solution
Thank you, i have that set up now
Is there a way I can call these functions with alpine, like x-on, now?
Nevermind