Giter VIP home page Giter VIP logo

Comments (4)

suraj-webkul avatar suraj-webkul commented on June 20, 2024

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

from bagisto.

suraj-webkul avatar suraj-webkul commented on June 20, 2024

For now
We have a file named app.js which is available in shop and admin package.
in this file we are created an app(window.app) object of createApp which is root instance of application and this app object is mounted into

For shop package

packages/Webkul/Shop/src/Resources/views/components/layouts/index.blade.php

For admin package

packages/Webkul/Admin/src/Resources/views/components/layouts/index.blade.php

with the window load event listner means when all the dom loaded then mount the app.

As you said that you worked on SFC.
then the below code snippet will act as script tag.

    <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>

from bagisto.

suraj-webkul avatar suraj-webkul commented on June 20, 2024

For vite configurations you can visit:
https://devdocs.bagisto.com/2.x/packages/assets.html

from bagisto.

dtchkoidze avatar dtchkoidze commented on June 20, 2024

Thanks for the reply, all sorted out!

from bagisto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.