Skip to content
Discussion options

You must be logged in to vote

It seems to be a problem with CodePen. I found another pen that had x-data="function" and that one was working. A comparison between their page and mine. I used the add external script in settings and they had directly included it in the HTML.

So I did some testing if you add alpine.js using the settings menu, it will fail to execute any functions using x-data="function" but it would run scripts on the page. If I added the script, the same CDN, using a script tag to the HTML it would work as expected and the x-data=" function" runs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TerrePorter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant