[Vuejs]-Nothing output in laravel blade please find my error. I don't know what happen

0👍

You must put your script tag outside of the #app div

      <!DOCTYPE html>
    <html lang="en" dir="ltr">
      <head>
        <meta charset="utf-8">
        <link rel="stylesheet" src="http://localhost:8000/css/app.css">
        <script src="http://localhost:8000/js/app.js">
      </head>
      <body>
        <div id="app">
          {{message}}
          
        </div>
<script> 
const app = new Vue({
                el: "#app",
                data() {
                  return {
                    message: "haha"
                  };
                }
              });
          </script>
      </body>
    </html>

Leave a comment