keynote presentation on Vue.js and a sample webpage

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Cool Vue App</title>
  6. <link rel="stylesheet" type="text/css" href="./node_modules/app.css">
  7. <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
  8. </head>
  9. <body>
  10. <div id="app">
  11. <div class="wrapper" v-bind:style="bgc">
  12. <div class="content">
  13. <h1>{{description}}</h1>
  14. <input type="text" v-on:input="bgc.backgroundColor = $event.target.value" />
  15. </div>
  16. </div>
  17. </div>
  18. <script src="./node_modules/app.js"></script>
  19. </body>
  20. </html>