refactor: form header as content projection, formgroup as input

This commit is contained in:
2025-12-14 20:48:10 -03:00
parent 5f1c3062ab
commit f53250dd3b
4 changed files with 17 additions and 26 deletions

View File

@@ -1,5 +1,6 @@
<form [formGroup]="form">
<legend>{{strings.addContact|upperfirst}}.<span>{{strings.allFieldRequired|upperfirst}}</span></legend>
<form [formGroup]="form()" (ngSubmit)="handleSubmit(form().value)">
<ng-content select="[slot='header']"></ng-content>
<div class="fields">
<app-form-field
[errorsDictionary]="companyAndNameErrorsDictionary"