Coding task · Vue.js course · Module 15: TypeScript & Nuxt

Practice: Provide/Inject with InjectionKey

Use InjectionKey for typed data passing.

Task

Define an InjectionKey, use provide in the parent and inject in the child.