Top "Vue-composition-api" questions

A set of additive, function-based APIs for VueJS that allow the flexible composition of component logic.

How to Watch Props Change with Vue Composition API / Vue 3?

While Vue Composition API RFC Reference site has many advanced use scenarios with the watch module, there is no examples …

javascript typescript vue.js vuejs3 vue-composition-api
Vue.js 3 Event Bus

How to create Event Bus in Vue 3? In Vue 2, it was: export const bus = new Vue(); bus.$on(...) bus.$emit(...) …

javascript vue.js vue-component vuejs3 vue-composition-api
Vue 3 Composition API - How to get the component element ($el) on which component is mounted

I want to use onMounted to initiate third-party library. To do that I need the component element as its context. …

vue.js vue-composition-api vuejs3
Strongly typing props of vue components using composition api and typescript typing system

I am using vue composition api with typescript. How can I strongly type the component props using typescript typing system?

typescript vue.js strong-typing vue-composition-api
ref vs reactive in Vue 3?

Looking at some examples of some people's preview tutorials for Vue 3. [Currently beta right now] I've found two examples: Reactive &…

vuejs3 vue-composition-api
@vue-composition / How can I use asynchronous methods in setup()

<script lang="ts"> import { createComponent } from "@vue/composition-api"; import { SplashPage } from "../../lib/vue-viewmodels"; export default createComponent({ async setup(…

javascript typescript vue.js web vue-composition-api