Skip to content

Commit cd4139c

Browse files
committed
fix: use input instead of model
1 parent 777c2e9 commit cd4139c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/identity-form/identity-form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, model } from '@angular/core';
1+
import { Component, input } from '@angular/core';
22
import { Field, FieldTree, hidden, required, schema } from '@angular/forms/signals';
33
import { FormError } from '../form-error/form-error';
44

@@ -39,7 +39,7 @@ export const identitySchema = schema<GenderIdentity>((path) => {
3939
styleUrl: './identity-form.scss',
4040
})
4141
export class IdentityForm {
42-
readonly identity = model.required<FieldTree<GenderIdentity>>();
42+
readonly identity = input.required<FieldTree<GenderIdentity>>();
4343

4444
protected maybeUpdateSalutationAndPronoun(event: Event) {
4545
const gender = (event.target as HTMLSelectElement).value;

0 commit comments

Comments
 (0)