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 1010 </ head >
1111 < body >
1212 < 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 >
1425 </ div >
1526
16- <!-- Import JS -->
27+ <!-- Import App -->
1728 < script src ="./main.js "> </ script >
29+
30+ <!-- Mount App -->
31+ < script >
32+ app . mount ( '#app' )
33+ </ script >
1834 </ body >
1935</ 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