• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Create new vue js component

General Discussion
2
2
135
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 1 Mar 2023, 14:49

    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
    • 2 months later
    • A
      Amitk-Webkul last edited by 2 May 2023, 14:23

      Hi there,

      you need to include the compiled app.js file.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post