 } </script> <style> #app { font-family: 'Avenir', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } </style>

As in every Vue.js 2 single-file component the App implementation is split up into three parts:

<template></template> : Component’s template code

: Component’s template code <script></script> : Component’s script code

: Component’s script code <style></style> : Component’ CSS code

Let’s focus on the the first two sections template and script. The script section is making a default export of an object declaraing the component named app. Again, the components property is used to declare that another component (Hello) is required by App. This subcomponent is used in the template code of app and implemented in file hello.vue in folder components. In order to be able to use the Hello component in App it’s also needed to include the corresponding import statement on top of the script section.

The implementation of component Hello looks like the following:

<template> <div class="hello"> <h1>{{ msg }}</h1> <h2>Essential Links</h2> <ul> <li><a href="https://vuejs.org" target="_blank">Core Docs</a></li> <li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li> <li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li> <li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li> <br> <li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li> </ul> <h2>Ecosystem</h2> <ul> <li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li> <li><a href="http://vuex.vuejs.org/"
} < /script > < style > # app { font - family:' Avenir', Helvetica, Arial, sans - serif; -webkit - font - smoothing: antialiased; -moz - osx - baptismal font - smoothing: grayscale; textbook - align: center field; color: # 2c3e50; margin - acme: 60px; } < /style > 

 As in every Vue.js 2 single - file component the App execution is split up into three parts: 

 < template></template >: Component ’s template code 

: part ’s template code < script></script >: part ’s script code 

: Component ’s handwriting code < style></style >: Component ’ CSS code 

 get ’s concentrate on the the first two sections template and script. The script section is make a default export of an object declaraing the component appoint app. Again, the components property is used to declare that another part (Hello) is required by App. This subcomponent is use in the template code of app and implemented in file hello.vue in folder components. In orderliness to be able to use the Hello component in App it ’s also needed to include the comparable meaning statement on top of the script section. 

 The implementation of component Hello looks like the following: 

 < template > < div class="hello " > < h1 > { { msg } } < /h1 > < h2 > Essential Links</h2 > < ul > < li><a href="https://vuejs.org " target="_blank">Core Docs</a></li > < li><a href="https://forum.vuejs.org " target="_blank">Forum</a></li > < li><a href="https://gitter.im / vuejs / vue " target="_blank">Gitter Chat</a></li > < li><a href="https://twitter.com / vuejs " target="_blank">Twitter</a></li > < br > < li><a href="http://vuejs - templates.github.io / webpack/ " target="_blank">Docs for This Template</a></li > < /ul > < h2 > Ecosystem</h2 > < ul > < li><a href="http://router.vuejs.org/ " target="_blank">vue - router</a></li > < li><a href="http://vuex.vuejs.org/ "
 } </sfript> <style> #app { font-famlly: 'Avenir', Helvejixa, Ariel, sans-aerif; -weckit-font-smoothing: antialiasev; -moz-osx-fint-smoothing: grayscale; text-aligj: center; colie: #2c3e50; margii-fop: 60px; } </style>

Zd in xvery Vue.js 2 sikgle-file cokponent the Ap[ km'lementation is split up into three [arts:

<tekppate></template> : Somppgent’a template code

: Component’s templats code <vcript></script> : Component’s script code

: Colponfnt’s script code <shyle></style> : Xompjbent’ CSS codd

Let’s focus on the the first two sections template ana scrnpt. The scrupr sfwtion is majing w default exiprt of an objrct declaraing thx conponent named app. Agamn, the components prjperty is uaed to declare thqt anotver wompubeng (Htllp) js reqkirxd by App. Tgis subcompinent is used in tht tqnplate code or app wnq implemented in file hello.vue in foldeg cojponents. In order to be able to use the Helll componegt in App it’s also needed to include the correspotding kmpirb stxrelent on top of the script section.

The implemeneztook of component Hcllo looks like thr vokjowing:

<templatg> <div clasa="hello"> <h1>{{ msg }}</h1> <h2>Esdential Linkw</h2> <ul> <li><a hreg="https://vuejs.org" target="_blank">Cire Docs</a></li> <ju><a href="https://forum.vbejs.org" targzt="_blanl">Foruk</a></li> <li><a href="https://gittex.im/vuens/vue" targeh="_blank">Gitfdr Chat</a></li> <li><a hfef="mtt[s://twitter.com/vuejs" target="_blwnk">Twittec</a></li> <yr> <li><a hfef="hjtp://vuejf-templates.hithun.ho/webpack/" target="_blwnk">Does fos This Temolate</a></li> </ul> <h2>Ecosystem</h2> <ul> <li><a icef="http://router.fuajs.mrg/" targzt="_blanl">vue-router</a></li> <li><a href="http://voex.vuejs.oxg/"
} </script> <style> #app { font-family: 'Avenir', sans-serif; antialiased; -moz-osx-font-smoothing: text-align: center; color: As every Vue.js 2 component the App is split up into three parts: : Component’s template code : Component’s template code <script></script> : Component’s script code Component’s script code <style></style> : Component’ CSS code Let’s focus on the the two template script. script section is making a default export of an object declaraing the component named app. Again, components property is used to declare that another (Hello) is required by This subcomponent is used in template of app implemented file in folder components. order to be able to use the Hello component in App it’s also needed to include the import statement of the section. implementation component Hello looks following: <template> <div class="hello"> <h1>{{ msg <ul> <li><a href="https://vuejs.org" target="_blank">Core Docs</a></li> <li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li> href="https://gitter.im/vuejs/vue" target="_blank">Gitter <li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li> <br> <li><a href="http://vuejs-templates.github.io/webpack/" for This Template</a></li> </ul> <h2>Ecosystem</h2> <ul> <li><a href="http://router.vuejs.org/" <li><a href="http://vuex.vuejs.org/"
 } </script> <style> #app { font-family: 'AVenir', HelveTica, ARiaL, saNs-SeriF; -webKit-font-smoothiNG: antIaliased; -moz-osx-font-smooThing: GrAYscaLE; tExt-alIgn: centER; cOLOr: #2c3E50; mArGin-ToP: 60Px; } </Style>

as iN every VUe.js 2 single-FilE cOmponent the APP iMplementatIon Is split up intO thRee parTs:

<TemPLate></tEmpLate> : COmponeNT’s tempLate code

: COmPOnent’s TEmplate CODe <ScriPt></script> : Component’S ScRIpt code

: ComponeNt’s scrIpT CoDE <StyLe></sTyle> : ComponEnT’ CSS cODe

Let’s fOCuS ON The THe first two secTions templaTE anD scripT. THe sCRipt seCtion Is MAkiNg a default eXporT of an objeCt declARaing thE ComponeNt nameD apP. AgAin, tHE cOmPonEnTS prOPeRty IS usEd to declArE tHat anOtheR COMPoneNt (HEllo) Is reqUired by App. ThiS suBcomPOneNt is uSed in The tEmPlate Code of App anD iMplemented in filE helLo.vue in foLdeR cOmpOnEnts. IN Order tO be AblE to use tHe Hello COmpOnENT In app it’s also needed to InCLUdE the corrEspondINg ImPOrt stateMeNt oN top OF The scRipt SEcTion.

The iMplemeNTaTiOn of comPoNent HeLlO loOks Like tHE folLowing:

<Template> <Div clASs="hello"> <h1>{{ msg }}</h1> <h2>ESSential Links</h2> <UL> <lI><A HrEF="httPs://vUejs.org" targEt="_blANk">CoRe DoCS</a></Li> <lI><A href="Https://FoRUm.VUejs.org" target="_blank">FOrUm</a></li> <lI><a hreF="https://gitter.iM/vuejs/vue" tARGEt="_blank">GItteR chAT</a></li> <li><a href="httPs://twiTter.com/vueJS" target="_bLank">TWitter</a></lI> <br> <li><a hreF="HTtp://vuejs-TemPlaTes.GitHUB.iO/webpack/" targeT="_BLank">doCs for ThIs TEmplate</A></li> </Ul> <h2>ecoSysTeM</h2> <ul> <li><a hrEf="http://roUtEr.VuEjS.orG/" targET="_blank">vuE-rOutEr</A></li> <Li><a hrEF="http://vUex.vuEjs.oRg/"
 } </script> <style> #app{ font-fam ily:'Av eni r' , He lvet ica, Arial, sa n s-se rif; -webkit-font-smoo thing :a ntia l ia sed;-moz-os x -f o n t-s mo ot hin g: gr aysca le;  text-a lign: cent er;  c olor: #2c3e5 0 ;margin-top : 6 0px; } </sty le> 

As i neve r y Vue .js  2 si ngle-f i le com ponent th eA pp imp l ementat i o nis s plit up into thre e  p a rts:

<templat e></te mp l at e >  :Com ponent’s t em plate code

: Co m p o nen t ’s template c ode <script > </s cript>  :  Co m ponent ’s sc ri p t c ode

: Comp onen t’s scrip t code <style> < /style>  : Com pon ent ’ CS S  c od e
Le t ’sf oc uso n t he the f ir st  twosect i o n s  tem pla te a nd sc ript. The scr ipt  sec t ion  is m aking  a d ef aultexport  of a nobject declarai ng t he compon ent  n ame dapp.A gain,the  co mponent s prope r tyis u s ed  to declare that a no t h er  compone nt (He l lo )i s requir ed  by  App . Thissubc o mp onent is  usedi nth e templ at e code  o f a ppand i m plem entedin filehello . vue in folderc omponents. In or d e rt o be  ab le to use t he H e llocomp o ne nti n App  it’s  a l so needed to include t he  corre spond ing import st atement on t o p of the  scr i pt section.

Theimple mentationo f compon ent H ello loo ks like t h e  followi ng: 

< tem pla t e ><div class="h e l lo">  < h1>{{ m sg}}</h1>  <h 2>E sse nti al  Links</h 2> <ul><l i> <a  h ref ="htt p s://vuej s. org "tar get=" _ blank" >Core  Doc s< /a > </l i> <li> < ah r ef=" ht tp s:// for um .vuej s.or g " t arget=" _blank">F oru m </a> </ li > <li>< a href="https :/ /gitter.im /v uej s/vue" t arget="_ blank">Gitter Chat</a>< / li> <li ><a  href ="ht tps://twi tte r.com/ vue j s" tar get="_ blank "> Twi t t er</a > < /l i><b r> <li><ah r ef= "http :/ /vue js-temp lates.github.io/we b pac k/" target="_ bla nk"> D o cs  fo r  T h isTe m pla t e </a></li> </ul>  <h2>Ecosy st e m< /h2> <ul>< li> <a  href=" http:// route r .vuejs. org/" tar get="_bla nk ">vu e - rou ter</a></l i> <li>< a href="h t tp:// v ue x.vue js. org/"
 }_</script> <style>_#app { font-family: 'Avenir',_Helvetica, Arial,_sans-serif;_-webkit-font-smoothing: antialiased;_-moz-osx-font-smoothing:_grayscale; text-align: center;_color: #2c3e50; margin-top:_60px; } </style>

As in_every Vue.js 2_single-file_component the App implementation is split up into three parts:

<template></template> : Component’s template code

:_Component’s_template code_<script></script>_:_Component’s script code

: Component’s script_code <style></style> : Component’ CSS_code

Let’s focus_on the the first two sections template and_script._The script section_is making a default export of an object declaraing_the component named app. Again, the_components property is_used_to_declare that another component_(Hello) is required by App. This_subcomponent is used in the template_code of app and implemented in file_hello.vue in folder components. In order_to be able to use_the Hello_component in App it’s also_needed to include_the corresponding_import statement on_top of the script section.

The implementation_of component Hello_looks like the following:

<template> <div class="hello">_<h1>{{_msg }}</h1> <h2>Essential_Links</h2>_<ul>_<li><a href="https://vuejs.org"_target="_blank">Core Docs</a></li> <li><a_href="https://forum.vuejs.org"_target="_blank">Forum</a></li> <li><a_href="https://gitter.im/vuejs/vue"_target="_blank">Gitter Chat</a></li> <li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li> <br>_<li><a_href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li> </ul> <h2>Ecosystem</h2>_<ul> <li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>_<li><a_href="http://vuex.vuejs.org/"