folders management clarification, how to use module in the app.js file & call data from GraphQL #2068
Unanswered
tengkuzulfadli
asked this question in
1. Help
Replies: 1 comment
-
Can you post your app.js and index.html? use ``` to delimitate the code so it reads better |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm still new with Alpine js. I have 4 questions need clarification:
The instruction to install using module on the alpine js website is not clear. I added the line of code provided to the app.js file, but it's not working when I test a simple function for toggling a nav menu. Then, i added the alpine js cdn link, it's working. How can I add the import from 'alpine js' code in the app.js file?
Related to the above question, I attached a screenshot for my project folders, is the app.js file correctly placed?
I tried to test the app.js file by writing a simple Vanilla js code, then referencing to the index.html file using alpine js, it's not working at all. Then, I tried a second time by placing my vanilla js code inside index.html and added the alpine js cdn file, then it's working. But in this project, I want to place all custom js code separately with html files. Was this issue related to the folders management above?
How can I call my database inside Graphql to alpine js?
Appreciate your assistance!

Beta Was this translation helpful? Give feedback.
All reactions