I'm pretty new with Vue and I am trying to add another input box (which I have as a separate component), when clicking on a button.
<div>
<Input id="school" label="school" class="school-input" />
</div>
When clicking on a button, I want to add another input field.
<Button btn-text="add new school" type="btn-edit" @click="add()" />
But I don't know what should I put in the add() method (since the input box is a component, and not just a regular html input), so that when I click on the button, I get a new empty input box below the existing one.
Thanks for your help and references.