index.html 581 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" type="text/css" href="./assets/css/style.css">
  7. <title>Product app</title>
  8. </head>
  9. <body>
  10. <div class="nav-bar"></div>
  11. <div id="app">
  12. <div class="cart">
  13. <p>Cart({{cart.length}})</p>
  14. </div>
  15. <product :is-premium="isPremium" @add-to-cart="updateCart" @remove-from-cart="removeItem"></product>
  16. </div>
  17. <script src="./assets/js/vue.js"></script>
  18. <script src="main.js"></script>
  19. </body>
  20. </html>