Skip to content

Commit dc09fd8

Browse files
added .svg logo and questions
1 parent 51b1538 commit dc09fd8

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

.vs/milan-nx/v16/.suo

0 Bytes
Binary file not shown.

.vs/slnx.sqlite

0 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h2>Frage</h2>
22
<p>
3-
{{question.question}} {{answers}}
3+
{{question.question}}
44
</p>
55
<div *ngFor="let answer of question.answers">
6-
<button class="answer" (click)="setAnswer()">{{answer}}</button>
6+
<button class="answer" (click)="setAnswer(answer)">{{answer.answerText}}</button>
77
</div>
88

apps/ch-maker-quiz/src/app/game/game.component.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ export class GameComponent implements OnInit {
1212
{
1313
question: "Die Regierungsform der Schweiz ist...",
1414
answers: [
15-
"eine Demokratie",
16-
"eine Diktatur",
17-
"eine totalitäre Freiheitsregierungsform",
18-
"eine koloniale Selbstverwaltungseidgenossenschaft der UNO"],
15+
{ id: 0, answerText: "eine Demokratie" },
16+
/*
17+
{ id: 1, answerText: "eine Diktatur" },
18+
{ id: 2, answerText: "eine totalitäre Freiheitsregierungsform" },
19+
{ id: 3, answerText: "eine koloniale Selbstverwaltungseidgenossenschaft der UNO" },
20+
*/
21+
]
1922
correctAnswer: 0
2023
}
2124
];
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class Question{
22
question: String;
3-
answers: String[];
3+
answers: { id: Number; answerText: String;};
44
correctAnswer: number;
55
}
Loading

apps/ch-maker-quiz/src/favicon.ico

224 KB
Binary file not shown.

0 commit comments

Comments
 (0)