12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- <link rel="stylesheet" href="../lib/bulma-0.5.0.css" />
- <link rel="stylesheet" href="../styles.css" />
- <link rel="stylesheet" href="styles.css" />
- </head>
- <body class="section">
- <nav>
- <h1><span class="index">18</span>Vue Ajax requests with Axios</h1>
- <ul>
- <li><a href="../lesson18">Prev</a></li>
- <li><a href="../lesson20">Next</a></li>
- </ul>
- </nav>
- <div id="root" class="container">
- <form method="post" action="projects" @submit.prevent="onSubmit">
- <div class="control">
- <label for="name" class="label">Project name:</label>
- <input type="text" id="name" name="name" class="input" v-model="name" />
- </div>
- <div class="control">
- <label for="description" class="label">Project description:</label>
- <input type="text" id="description" name="description" class="input" v-model="description" />
- </div>
- <div class="control">
- <button class="button is-primary">Create</button>
- </div>
- </form>
- </div>
- <script src="../lib/axios-0.16.2.min.js"></script>
- <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.js"></script -->
- <script src="../lib/vue-2.1.6.js"></script>
- <script src="code.js"></script>
- </body>
- </html>
|