refactor: form header as content projection, formgroup as input
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user