From 8dd2042e95d9efbb9801a97050203c1d0123d4cb Mon Sep 17 00:00:00 2001 From: Adam Jahr Date: Fri, 22 May 2020 00:13:15 -0400 Subject: [PATCH] L2 Starting code --- index.html | 22 ++-------------------- main.js | 14 +------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/index.html b/index.html index 25644b1..fc27380 100644 --- a/index.html +++ b/index.html @@ -10,28 +10,10 @@
- - -
-

Cart({{ cart.length }})

-
- +

Product goes here

- + - - - - - - - - diff --git a/main.js b/main.js index abfc287..0083deb 100644 --- a/main.js +++ b/main.js @@ -1,13 +1 @@ -const app = Vue.createApp({ - data() { - return { - premium: true, - cart: [] - } - }, - methods: { - updateCart(id) { - this.cart.push(id) - } - } -}) +const product = "Socks"