Skip to content
","upvoteCount":1,"url":"https://github.com/orgs/vuejs/discussions/14171#discussioncomment-15168931"}}}
Discussion options

You must be logged in to vote
<script setup>
import { ref, getCurrentInstance } from 'vue'
const instance = getCurrentInstance()
console.log(instance.appContext.config.globalProperties)
const msg = ref('Hello World!')
</script>

<template>
  <h1>{{ msg }}</h1>
  <input v-model="msg" />
</template>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@baiwusanyu-c
Comment options

@baiwusanyu-c
Comment options

Answer selected by baiwusanyu-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants