s6e96 last compoent s6

This commit is contained in:
Tyrel Souza 2018-04-16 23:48:33 -04:00
parent a67e868830
commit 8a52e80050
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 37 additions and 0 deletions

15
vue-cli/src/Home.vue Normal file
View File

@ -0,0 +1,15 @@
<template>
<div><app-server-status v-for="server in 5"></app-server-status></div>
</template>
<script>
import ServerStatus from './ServerStatus.vue'
import AppServerStatus from "./ServerStatus";
export default {
components: {
AppServerStatus,
'app-server-status': ServerStatus
}
}
</script>

View File

@ -0,0 +1,22 @@
<template>
<div>
<p>Server Status: {{ status }}</p>
<hr>
<button @click="changeStatus">Change</button>
</div>
</template>
<script>
export default {
data(){
return {
status: 'critical'
}
},
methods: {
changeStatus(){
this.status = 'Normal'
}
}
}
</script>