We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d2abc commit ef8a572Copy full SHA for ef8a572
1 file changed
src/app/component/create/create.component.html
@@ -6,16 +6,16 @@ <h2 mat-dialog-title>Create Post</h2>
6
id="create-user-id"
7
matInput
8
[disabled]="true"
9
- [value]="data.userId"
+ [(ngModel)]="data.userId"
10
/>
11
</mat-form-field>
12
<mat-form-field class="w-full">
13
<mat-label>Title</mat-label>
14
- <input id="create-title" matInput [value]="title" [(ngModel)]="title" />
+ <input id="create-title" matInput [(ngModel)]="title" />
15
16
17
<mat-label>Body</mat-label>
18
- <input id="create-body" matInput [value]="body" [(ngModel)]="body" />
+ <input id="create-body" matInput [(ngModel)]="body" />
19
20
</mat-dialog-content>
21
<mat-dialog-actions class="gap-5">
0 commit comments