Instruction: Describe how the provide and inject API works in Vue.js and its use cases.
Context: This question tests the candidate's knowledge on advanced Vue.js features for passing data deep down the component tree without using props.
medium
hard