-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How vue works in blade #9895
Comments
Hi dtchkoidze, Thank you for your question. For more detailed discussions and support, we recommend using our dedicated forums. You can find a lot of helpful resources and get answers from the community there. Please visit: Bagisto Forums |
For now For shop package
For admin package
with the window load event listner means when all the dom loaded then mount the app. As you said that you worked on SFC. <script type="module">
app.component('v-test', {
template: '#v-test-template',
});
</script> the below code snippet will act as template part of .vue file. <script
type="text/x-template"
id="v-test-template"
>
</script> and you can use the component as below code snippet provided. <v-test></v-test> |
For vite configurations you can visit: |
Thanks for the reply, all sorted out! |
Hello. I can't understand how is package shop or admin able to make use of vue in the blade files via <script>. I've worked with Vue SFCs but this way of working with vue is a bit strange.
Can anyone be so kind and guide me through how does it work? It'd be good if you could explain from start to finish, for example, if I were to create a new package, how should I set up vite app js for them to be able to render vue scripts inside blade files.
Thanks in advance
The text was updated successfully, but these errors were encountered: