Click in order · Vue.js course · Module 15: TypeScript & Nuxt
InjectionKey Configuration
Arrange the steps for creating typed provide/inject:
Items to click
- Create InjectionKey<T> = Symbol()
- Use provide(key, data) in the parent
- Use inject(key) in the child
- Define a data interface
You can check the correct answer by solving this task in the CodeWorlds game.