From fee29c7b13770bfcc7731f67cfb487befcd946fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Sat, 9 Feb 2019 16:36:15 +0100 Subject: [PATCH] Add ngModel to input fields --- .../_dialogs/content-edit/content-edit.component.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/components/creator/_dialogs/content-edit/content-edit.component.html b/src/app/components/creator/_dialogs/content-edit/content-edit.component.html index 75cf97a52..968b668f5 100644 --- a/src/app/components/creator/_dialogs/content-edit/content-edit.component.html +++ b/src/app/components/creator/_dialogs/content-edit/content-edit.component.html @@ -1,10 +1,9 @@ <div> <mat-form-field class="input-block"> - <input matInput placeholder="Thema" name="subject"/> + <input matInput [(ngModel)]="content.subject" maxlength="20" placeholder="Thema" name="subject"/> </mat-form-field> <mat-form-field class="input-block"> - <input matInput - placeholder="Inhalt" name="body"> + <input matInput [(ngModel)]="content.body" placeholder="Inhalt" name="body"> </mat-form-field> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px"> <button (click)="dialogRef.close()" mat-button color="primary"> -- GitLab