Question · Vue.js course · Module 7: Props & Events

Purpose of provide/inject

What is provide/inject used for in Vue?

Answer options

  • Dependency injection from the backend
  • Creating new components
  • Managing routing
  • Passing data through multiple levels without prop drilling

You can check the correct answer by solving this task in the CodeWorlds game.