Is it possible to have a dynamic component inside a LayoutComponent that uses slots to display contents? To explain: LayoutComponent uses slots to arrange & style contents using slots. To have multiple pages use the LayoutComponent, instead of wrapping each Page Components template with LayoutComponent, is it possible to have a single instance of LayoutComponent and have a dynamic component inside it?
https://codesandbox.io/s/reverse-slot-qft2n7?file=/src/main.js
Above link has the current code and also has the desired template commented out. Any idea if its achievable?
Googled, tried to use a component using render etc., Nothing seems to work.
You have just edit a little your code
You can do it like this