• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - What is the difference between slots and scoped slots in Vue.js?

Answer - In Vue.js, a slot is a placeholder in a child component filled with content passed from the parent component. In the slot, the component is compiled in the parent's scope and then passed to the child component. So, it is not possible to use child component properties in a slot's content. In Scoped slot, you can pass child component data to the parent scope and then use it in slot content.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners