0
I have a button that add new locations Forms. I would like to know how to delete the form if you have added it will not be filled.
I created this link to delete the fields.
<div class="col-12 text-center">
<div class="link_company blue underline_hover pointer" (click)="removeLocation()" i18n>Remover campos</div>
</div>
Not quite that, I need to create the removeLocation() function on a Component.ts.
– Thiago Cruz
If the form is Dirty the div to remove field will not be visible, if it is pristine div will be visible to remove field
– Thiago Cruz