s9e121 how content gets compiled

This commit is contained in:
Tyrel Souza 2018-04-17 23:06:15 -04:00
parent 2eb6c7ebb4
commit fc28afcc98
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 13 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<app-quote> <app-quote>
<h2>The Quote</h2> <h2>{{quoteTitle}}</h2>
<p>A Simple Quote</p> <p>A Simple Quote</p>
</app-quote> </app-quote>
</div> </div>
@ -15,6 +15,11 @@
import Quote from './components/Quote.vue' import Quote from './components/Quote.vue'
export default { export default {
data(){
return {
quoteTitle: "The Quote"
}
},
components: { components: {
appQuote: Quote appQuote: Quote
} }
@ -22,5 +27,8 @@
} }
</script> </script>
<style> <style scoped>
h2 {
color: red;
}
</style> </style>

View File

@ -17,6 +17,8 @@
padding: 30px; padding: 30px;
margin: 30px auto; margin: 30px auto;
text-align: center; text-align: center;
}
h2 {
color: blue
} }
</style> </style>