Skip to content

Instantly share code, notes, and snippets.

@ShariqT
Last active November 19, 2021 05:44
Show Gist options
  • Save ShariqT/d57b74aae66cf98708c785932b54623f to your computer and use it in GitHub Desktop.
Save ShariqT/d57b74aae66cf98708c785932b54623f to your computer and use it in GitHub Desktop.
AddressForm.vue
<script setup>
import { toRefs, ref, onMounted } from "vue";
const props = defineProps({
address: Object,
formId: String
})
const { name, address_line1, address_line2, address_city, address_state, address_zip } = toRefs(props.address)
onMounted(()=> { console.log("onmounted hook") })
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment