0๐
-
Create a separate component for Drop down list like shown in following image.
-
This component will receive the drop down options as props.
-
Now import it inside the main component lets say App.vue
-
initialize a variable lets say count to either 0 or 1 by default.
-
Bind that variable to Add + button so that on every click of that button the count variable will increment by one.
-
use that count variable as for loop and inside that loop call that Drop down component as shown in following image.
-
As you click the button, it will increment the count and also add another dropdown as shown in following image.
Source:stackexchange.com