Created
December 24, 2018 11:11
-
-
Save takuya-nakayasu/3c970a9723495e818f7b8d9e421fc441 to your computer and use it in GitHub Desktop.
質問フォームのテンプレート
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
<div class="container"> | |
<mat-card class="question-card"> | |
<mat-card-header> | |
<mat-card-title class="question-title">YES/NO形式の質問をどうぞ!</mat-card-title> | |
</mat-card-header> | |
<mat-card-content> | |
<form class="question-form" [formGroup]="questionForm"> | |
<!-- 質問の入力フォーム --> | |
<mat-form-field class="input-field"> | |
<input matInput placeholder="質問(文の最後に?をつけてください)" | |
id="question" name="question" formControlName="question"> | |
<mat-error *ngIf="questionForm.controls.question.errors?.isNoQuestionMark"> | |
文末に?をつけてください | |
</mat-error> | |
</mat-form-field> | |
</form> | |
</mat-card-content> | |
</mat-card> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment