I have component called text-editor.component and this is my html template:
<div class="container">
<div id="testo" class="offset-1 text-center" >
<input type="text" class="col-8 text-center">
</div>
</div>
I want to add a new input text when I press the enter key. This is what I'm trying to achieve:
<div id="testo" class="offset-1 text-center" >
<input type="text" class="col-8 text-center">
<!-- second input -->
<input type="text" class="col-8 text-center">
</div>
</div>
when the user presses enter after inputting text into the input, a new input should spawn. I am using Angular's template driven forms.