[Vuejs]-Add components to parent div dynamically in vue file

0👍

You should change your approach a little bit, when using Vue you should not think about adding/removing anything from DOM directly. You should modify your data, which in turn will lead to changes in your DOM.

I think what you are looking for is dynamic components

<!-- Component changes when currentTabComponent changes -->
<component v-bind:is="currentTabComponent"></component>

Leave a comment