Skip to content

Dependency Injection easy #Composition API

By webfansplz @webfansplz

Take the Challenge    简体中文

For this challenge, you'll use the Composition API: Dependency Injection to complete the challenge. Here's what you need to implement 👇:

// Child.vue 

<script setup lang="ts">
// Add a piece of code to make the `count` value get injected into the child component.
</script>

<template>
  {{ count }}
</template>

Share your Solutions Check out Solutions