lesson 127: replace the header title with a prop
This commit is contained in:
parent
0be7e38135
commit
cf026ab5ca
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<the-header></the-header>
|
||||
<the-header title="One big application"></the-header>
|
||||
<stored-resources :stored-resources="storedResources"></stored-resources>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<template>
|
||||
<header>
|
||||
<h1>One big application</h1>
|
||||
<h1>{{ title }}</h1>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {};
|
||||
export default {
|
||||
props: ['title']
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
Reference in New Issue