You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep the typings introduced by Angular 14 are a major change in forms, at least ofc typing wise and ngx-sub-form had made it's own typings since we had none provided previously.
We haven't investigated any further if we should ditch our own types and use the ones from angular only. I think that while it may seem like a good idea there are numbers of places where it'd clash with ngx-sub-form so unsure for now.
At the moment, the only way to get rid of that while keeping type safety template side; it's to use $any. Example:
[formGroup]="$any(form.formGroup)"
I hate to say this because I'm always all for maximum type safety but for now it's the best we've got. It's not too bad because it's not like the type of form.formGroup is likely to change at all and you still get type safety for all the rest
Could be that your IDE is using a custom tsconfig behind the scenes with different values for the angular compiler options (probably something stricter).
is it possible to remove this alert, i followed the whole manual to create the FormGroup
public form:NgxSubForm<Endereco, Endereco> help on to find out the name of the variables in [formControlName]="form.formControlNames.city"
The text was updated successfully, but these errors were encountered: