lara1
146
8
Laravel

the data of components isn't showing in browser

Posted 1 month ago by lara1

I have created the components in Laravel, but these components are not showing in browser, this is the link of complete source code: https://drive.google.com/file/d/1yco3ve6HvsTPZPk98hmXQ5G7RTYK1nw7/view?usp=sharing

Dashboard.vue:

  <template>
    <div class="container">
     <div class="row justify-content-center">
      <div class="col-md-8">
         <div class="card card-default">
             <div class="card-header">Dashboard Component</div>

             <div class="card-body">
                 I'm an example component.
            </div>
        </div>
    </div>
  </div>
   </div>
 </template>

    <script>
      export default {
        mounted() {
         console.log('Component mounted.')
         }
      }
    </script>

app.js:

  let routes = [
     { path: '/dashboard', component: require('./components/Dashboard.vue') },
     { path: '/users', component: require('./components/Users.vue') },
     { path: '/profile', component: require('./components/Profile.vue') }
   ]

screenshot of package.json: https://ibb.co/QcpCVc3

how to solve this issue?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.