lesson 127: replace the header title with a prop

This commit is contained in:
Andreas Zweili 2021-02-08 14:31:39 +01:00
parent 0be7e38135
commit cf026ab5ca
2 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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>