Created
December 30, 2023 10:59
-
-
Save phptechs/2b9f6c802c0a626a516df470ced3ccc1 to your computer and use it in GitHub Desktop.
Vue3 template
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
<script setup> | |
import { ref } from "vue" | |
const count = ref(0) | |
</script> | |
<template lang="pug"> | |
div | |
button.btn(@click='count++') {{ count }} | |
</template> | |
<style lang="scss" scoped> | |
.btn { | |
display: block; | |
border: none; | |
background-color: #04AA6D; | |
padding: 14px 28px; | |
font-size: 16px; | |
cursor: pointer; | |
text-align: center; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment