alpinejs + requirejs #1551
StefanGruenberg
started this conversation in
3. Feature Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
In PHP Projects like Magento it's the default practice to load *.phtml files as templates with the requried HTML Markup. JS Files mostly separated into single *.js files.
I'm looking for a solution to combine Alpine Data Model and requirejs, maybe someone has a good idea?!
Example:
or maybe
and into js file
In that case, Alpine logged 'Uncaught (in promise) ReferenceError: testObject is not defined'
lot's of thanks!
Beta Was this translation helpful? Give feedback.
All reactions