In this case, when i press Button1 the content of the div toReplace should be component-1.
Sure, each component should have a "close" button that show again the buttons (in short, the div toReplace) on press.
Sounds like you might want something like v-show. Would be a lot easier than trying to dynamically bring in a new template/component (if that's even possible).
@edoc nice example. That said, I'd probably use something like vue-router when you get to that point. It does lots of nice things for you rather than you writing a bunch of custom code, component transition animations being just one.
@edoc i have successfully used the component but, how i can pass props to it ? Each component have a "common property", that is the id (that come from database).
I get this warning just when i press Show Action 1 (but however, it works... i just get the warning).
When i press the second button, i dont get the warning