Skip to content

Commit ef8a572

Browse files
committed
Only 'ngModel' needed as 'value' is redudant
1 parent 16d2abc commit ef8a572

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/component/create/create.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ <h2 mat-dialog-title>Create Post</h2>
66
id="create-user-id"
77
matInput
88
[disabled]="true"
9-
[value]="data.userId"
9+
[(ngModel)]="data.userId"
1010
/>
1111
</mat-form-field>
1212
<mat-form-field class="w-full">
1313
<mat-label>Title</mat-label>
14-
<input id="create-title" matInput [value]="title" [(ngModel)]="title" />
14+
<input id="create-title" matInput [(ngModel)]="title" />
1515
</mat-form-field>
1616
<mat-form-field class="w-full">
1717
<mat-label>Body</mat-label>
18-
<input id="create-body" matInput [value]="body" [(ngModel)]="body" />
18+
<input id="create-body" matInput [(ngModel)]="body" />
1919
</mat-form-field>
2020
</mat-dialog-content>
2121
<mat-dialog-actions class="gap-5">

0 commit comments

Comments
 (0)