s9e125 switching multiple components with dynamic components

This commit is contained in:
Tyrel Souza 2018-04-17 23:25:38 -04:00
parent 24a5ed444e
commit 45fa5dc5ee
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<template>
<h3> The Author </h3>
</template>
<script>
export default {
name: "Author"
}
</script>
<style scoped>
</style>

24
s9/src/components/New.vue Normal file
View File

@ -0,0 +1,24 @@
<template>
<div>
<h3> New Quote </h3>
<button @click="counter += 1"> up </button>
{{counter}}
</div>
</template>
<script>
export default {
data() {
return {
counter: 0
};
},
destroyed(){
console.log("destroyed")
}
}
</script>
<style scoped>
</style>