Skip to content
Snippets Groups Projects
Commit cfeedc3e authored by HARTZ HENRI's avatar HARTZ HENRI
Browse files

fix: affichage du component

parent 7bf713da
Branches
No related merge requests found
<div class="container">
<form [formGroup]="form" (ngSubmit)="submitForm()">
<div>
<p class="erreur">{{erreur}}</p>
<input type="text" placeholder="Type ID..." formControlName="code" maxlength="6" (ngModelChange)="modelChangeFn($event)">
</div>
<div class="containerInfo">
<p class="infos">About this quiz</p>
<hr>
<p class="infos">Categorie : {{categorie}}</p>
<p class="infos">Question : {{question}}</p>
<p class="infos">Score : {{score}}</p>
</div>
<button type="submit">PLAY</button>
</form>
<div>
<p class="erreur">{{erreur}}</p>
<input type="text" placeholder="Type ID..." formControlName="code" maxlength="6" (ngModelChange)="modelChangeFn($event)">
</div>
<div class="containerInfo">
<p class="infos">About this quiz</p>
<hr>
<p class="infos">Categorie : {{categorie}}</p>
<p class="infos">Question : {{question}}</p>
<p class="infos">Score : {{score}}</p>
</div>
<button type="submit">PLAY</button>
</form>
</div>
\ No newline at end of file
......@@ -22,7 +22,7 @@ export class FormStartQuizComponent implements OnInit{
private formQuizService: FormQuizService,
private fb: FormBuilder,
private router: Router,
private dialogRef: MatDialogRef<FormStartQuizComponent>,
// private dialogRef: MatDialogRef<FormStartQuizComponent>,
) {}
ngOnInit(): void {
......@@ -36,7 +36,7 @@ export class FormStartQuizComponent implements OnInit{
Validators.pattern('^[a-zA-Z]*$')
]
]
});
});
}
submitForm(): void {
......@@ -46,7 +46,7 @@ export class FormStartQuizComponent implements OnInit{
},
});
this.dialogRef.close();
// this.dialogRef.close();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment