index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="../lib/bulma-0.5.0.css" />
  7. <link rel="stylesheet" href="../styles.css" />
  8. <link rel="stylesheet" href="styles.css" />
  9. </head>
  10. <body class="section">
  11. <nav>
  12. <h1><span class="index">18</span>Vue Ajax requests with Axios</h1>
  13. <ul>
  14. <li><a href="../lesson18">Prev</a></li>
  15. <li><a href="../lesson20">Next</a></li>
  16. </ul>
  17. </nav>
  18. <div id="root" class="container">
  19. <form method="post" action="projects" @submit.prevent="onSubmit">
  20. <div class="control">
  21. <label for="name" class="label">Project name:</label>
  22. <input type="text" id="name" name="name" class="input" v-model="name" />
  23. </div>
  24. <div class="control">
  25. <label for="description" class="label">Project description:</label>
  26. <input type="text" id="description" name="description" class="input" v-model="description" />
  27. </div>
  28. <div class="control">
  29. <button class="button is-primary">Create</button>
  30. </div>
  31. </form>
  32. </div>
  33. <script src="../lib/axios-0.16.2.min.js"></script>
  34. <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.js"></script -->
  35. <script src="../lib/vue-2.1.6.js"></script>
  36. <script src="code.js"></script>
  37. </body>
  38. </html>