File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 10
10
</ head >
11
11
< body >
12
12
< div id ="app ">
13
- < h1 > Product goes here</ h1 >
13
+ < div class ="nav-bar "> </ div >
14
+
15
+ < div class ="product-display ">
16
+ < div class ="product-container ">
17
+ < div class ="product-image ">
18
+ < img v-bind:src ="image ">
19
+ </ div >
20
+ < div class ="product-info ">
21
+ < h1 > {{ product }}</ h1 >
22
+ </ div >
23
+ </ div >
24
+ </ div >
14
25
</ div >
15
26
16
- <!-- Import JS -->
27
+ <!-- Import App -->
17
28
< script src ="./main.js "> </ script >
29
+
30
+ <!-- Mount App -->
31
+ < script >
32
+ app . mount ( '#app' )
33
+ </ script >
18
34
</ body >
19
35
</ html >
Original file line number Diff line number Diff line change 1
- const product = "Socks"
1
+ const app = Vue . createApp ( {
2
+ data ( ) {
3
+ return {
4
+ product : 'Socks' ,
5
+ image : './assets/images/socks_green.jpg'
6
+ }
7
+ }
8
+ } )
You can’t perform that action at this time.
0 commit comments