Skip to content

Commit c8fa0e7

Browse files
committed
recommitting files due to branch conflict. All PR changes reflected
1 parent 8ce28b8 commit c8fa0e7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@ import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
1313

1414
export const Quizzes = Symbol.for('Quizzes');
1515

16+
// Add your quiz provider here.
17+
18+
const QUIZ_PROVIDERS = [
19+
AnthonyMaysQuiz,
20+
YafiahAbdullahQuiz,
21+
AnotherQuiz,
22+
JosephCaballeroQuiz,
23+
OyeyemiJimohQuiz,
24+
ChigazoGrahamsQuiz,
25+
AmiyahJonesQuiz,
26+
LjMcwilliamsQuiz,
27+
];
28+
29+
@Module({
30+
providers: [
31+
...QUIZ_PROVIDERS,
32+
{
33+
provide: Quizzes,
34+
useFactory: (...args) => [...args],
35+
inject: QUIZ_PROVIDERS,
36+
},
37+
],
38+
})
39+
export class QuizzesModule {}
40+
41+
export const Quizzes = Symbol.for('Quizzes');
42+
1643
// Add your quiz provider here.
1744
const QUIZ_PROVIDERS = [
1845
AnthonyMaysQuiz,

0 commit comments

Comments
 (0)