Greetings! I am currently in the process of learning how to manipulate the DOM using Angular 2+ and my goal is to incorporate an Input field with type email when the click event is activated. Despite conducting some research via Google, I have been unable to find a solution that aligns with Angular2+.
<form>
<fieldset>
<legend>
<span class="number">3</span>E-Mail Receipants</legend>
<input type="email" name="email1" placeholder="Email Recipients <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dab0b5b2b4f4beb5bf9ab7bbb3b6f4b9b5b7">[email protected]</a>">
<input type="button" value="Add Email" (click)="addInputEmail()">
</fieldset>
<input type="submit" value="Generate Template" />
My primary concern is understanding how I can generate additional input fields beneath the pre-existing one. What tools are available for me to utilize within this context?
addInputEmail(){
}
Essentially, I would like a new input field to be created every time the button is clicked. Unfortunately, I feel lost as I am uncertain about the 'Tools' needed to effectively manipulate it initially.
Many thanks in advance.