0

My console is

and my app.js is like this

const app = new Vue({
  el: '#app',
  data: {
    msg: 'my new msg'
  }
});

and my blade template is like this

<div id="app">
  @{{ msg }}
</div>
1
  • In your home.blade.php are you including a link to the js file? Commented Apr 4, 2018 at 9:14

2 Answers 2

1

You are probably not having the component placed inside the blade file.

Add the <example-component></example-component> tag into your home.blade.php or whichever .blade.php file that you are using.

Sign up to request clarification or add additional context in comments.

Comments

1

The code to put in your home.blade.php

  <script src="{{ mix('js/app.js') }}"></script>

  </body>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.