-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have the children form components inputs trigger the touch onthe Cont…
…rolValueAccessor
- Loading branch information
Showing
7 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<div [formGroup]="form"> | ||
<mat-form-field> | ||
<mat-label>Event name</mat-label> | ||
<input type="text" matInput formControlName="eventName" required /> | ||
<input type="text" matInput formControlName="eventName" required (blur)="onNameInputBlur()" /> | ||
<mat-error>Event name is required</mat-error> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Event location</mat-label> | ||
<input type="text" matInput formControlName="location" /> | ||
<input type="text" matInput formControlName="location" (blur)="onLocationInputBlur()" /> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Event start date</mat-label> | ||
<input matInput formControlName="dateStart" required [matDatepicker]="dateStartPicker" /> | ||
<input matInput formControlName="dateStart" required [matDatepicker]="dateStartPicker" (blur)="onStartDateInputBlur()" /> | ||
<mat-datepicker-toggle matSuffix [for]="dateStartPicker"></mat-datepicker-toggle> | ||
<mat-datepicker #dateStartPicker></mat-datepicker> | ||
<mat-error>Please provide start date</mat-error> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Event start time</mat-label> | ||
<input matInput type="time" formControlName="timeStart" /> | ||
<input matInput type="time" formControlName="timeStart" (blur)="onStartTimeInputBlur()" /> | ||
</mat-form-field> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<div [formGroup]="form"> | ||
<mat-form-field> | ||
<mat-label>Name</mat-label> | ||
<input matInput formControlName="name"/> | ||
<input matInput formControlName="name" (blur)="onNameInputBlur()"/> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Email</mat-label> | ||
<input matInput formControlName="email" required/> | ||
<input matInput formControlName="email" required (blur)="onEmailInputBlur()"/> | ||
<mat-error>Please provide person's email</mat-error> | ||
</mat-form-field> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26684cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closes #3