Skip to content

Instantly share code, notes, and snippets.

@phptechs
phptechs / script.vue
Created December 30, 2023 11:25
temp 5
<script setup>
import { ref } from "vue"
const user = {
id: 1,
name: "John Smith",
type: "user",
}
</script>
<template lang="pug">
@phptechs
phptechs / script.vue
Created December 30, 2023 10:59
Vue3 template
<script setup>
import { ref } from "vue"
const count = ref(0)
</script>
<template lang="pug">
div
button.btn(@click='count++') {{ count }}
</template>