I would like to dynamically append Vue Components to a container.
I have a Dashboard.vue like this:
<template>
<div id="container"></div>
</template>
Then I have 3 components: LineChart.vue , Bar.vue , Cake.vue
I will be fetching data from a database depending on what users want to search, and everytime they make a query, I want to append one of the 3 components into "container"
So for example if a user makes 4 querys, generating 2 LineCharts, 1 Bar and 1 Cake, I want the Dashboard.vue to look like this:
<template>
<div id="container">
<LineChart id="lineChart1"></LineChart>
<LineChart id="lineChart2"></LineChart>
<Bar id="bar1"></Bar>
<Cake id="cake1"></Cake>
</div>
</template>