Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Create new vue js component

    General Discussion
    2
    2
    120
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shell last edited by

      Hi! I created a vue js component, but I don't know how to use it in the blade.
      I added this line in app.js

      Vue.component('reservation-component', () => import('./components/reservation-component'));
      

      nothing happens when i add this line in the blade

       <reservation-component></reservation-component>
      

      how to proceed?

      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by

        Hi there,

        you need to include the compiled app.js file.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post