Pass Props Between Components with Vue Slot Scope

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Components with slots can expose their data by passing it into the slot and exposing the data using slot-scope in the template. This approach allows you to pass props down from Parent components to Child components without coupling them together.

Alex Krasnicki
Alex Krasnicki
~ 3 years ago

Great lesson, thanks. The example in code section is unfortunately not working. Can you look at code sandbox and fix decorator issue? I can't seem to make it work.