Created
October 21, 2020 14:43
-
-
Save DeaVenditama/ef8ea7a7eb8855da9135d5739977bdfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>Deret Bilangan Ganjil</h1> | |
<h4>{{ bilangan }}</h4> | |
<button v-on:click="next">Next</button> | |
</template> | |
<script> | |
export default { | |
data(){ | |
return{ | |
bilangan : 1 | |
} | |
}, | |
methods:{ | |
next(){ | |
this.bilangan += 2; | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment