[Vuejs]-Vue is rendering template tag instead of content

3πŸ‘

βœ…

In the above code snippet you have not closed the script tag.
Code after closing the tag:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <title>Learning Vue.js</title>
  </head>
  
  <body>
    <div id="app">
      <input type="text" v-model="name" />
      <p>Hello {{ name }}</p>
    </div>

    <script>
      new Vue({
        el: '#app',
        data() {
          return {
            name: 'John'
          };
        }
      });
    </script>
  </body>
</html>

Leave a comment