L2 Starting code
This commit is contained in:
parent
142346579f
commit
8dd2042e95
22
index.html
22
index.html
@ -10,28 +10,10 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div class="nav-bar"></div>
|
<h1>Product goes here</h1>
|
||||||
|
|
||||||
<div class="cart">
|
|
||||||
<p>Cart({{ cart.length }})</p>
|
|
||||||
</div>
|
|
||||||
<product-display
|
|
||||||
:premium="premium"
|
|
||||||
@add-to-cart="updateCart"
|
|
||||||
></product-display>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Import App -->
|
<!-- Import JS -->
|
||||||
<script src="./main.js"></script>
|
<script src="./main.js"></script>
|
||||||
|
|
||||||
<!-- Import Components -->
|
|
||||||
<script src="./components/ProductDisplay.js"></script>
|
|
||||||
<script src="./components/ReviewForm.js"></script>
|
|
||||||
<script src="./components/ReviewList.js"></script>
|
|
||||||
|
|
||||||
<!-- Mount App -->
|
|
||||||
<script>
|
|
||||||
app.mount('#app')
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user