<!-- fichier index.html -->

<!DOCTYPE html>
<html lang="fr">
  <head><title>index.html</title></head>
  <body>
    <div id="app"></div>
    <!-- chargement de la librairie Vue.js -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
      let vm = new Vue({
        el: "#app",
        data: {
          message: '',
        },
        template: `
          <div>
            <input v-model="message" placeholder="tapez votre message"/>
            <p>{{ message }}</p>
          </div>
        `
      });
    </script>
  </body>
</html>
