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
@@ -99,7 +99,8 @@ The full form model still has to be defined in the parent component that manages
99
99
However, parts of the `FieldTree` can be passed to child components via property binding.
100
100
From the perspective of our `IdentityForm`, we receive the model from the parent component via an `input()`.
101
101
102
-
While we're at it, we also define a method `maybeUpdateSalutationAndPronoun()` that resets the salutation and pronoun fields when the user changes the gender from `diverse` to `male` or `female`.
102
+
While we're at it, we also define a method `updateSalutationAndPronoun()` that resets the salutation and pronoun fields when the user changes the gender field.
103
+
We set an empty value for the fields and call `reset()` which resets the `touched` and `dirty` state.
103
104
Finally, we import the `Field` directive for binding the fields to our form elements in the template and our `FormError` component to be able to display validation errors.
104
105
105
106
```typescript
@@ -110,12 +111,11 @@ Finally, we import the `Field` directive for binding the fields to our form elem
0 commit comments