We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bfc8e commit cca45eeCopy full SHA for cca45ee
lesson_03/quiz/src/quizzes/quizzes.module.ts
@@ -25,6 +25,32 @@ const QUIZ_PROVIDERS = [
25
ChigazoGrahamsQuiz,
26
AmiyahJonesQuiz,
27
XavierCruzQuiz,
28
+];
29
+
30
+@Module({
31
+ providers: [
32
+ ...QUIZ_PROVIDERS,
33
+ {
34
+ provide: Quizzes,
35
+ useFactory: (...args) => [...args],
36
+ inject: QUIZ_PROVIDERS,
37
+ },
38
+ ],
39
+})
40
+export class QuizzesModule {}
41
42
+export const Quizzes = Symbol.for('Quizzes');
43
44
+// Add your quiz provider here.
45
46
+const QUIZ_PROVIDERS = [
47
+ AnthonyMaysQuiz,
48
+ YafiahAbdullahQuiz,
49
+ AnotherQuiz,
50
+ JosephCaballeroQuiz,
51
+ OyeyemiJimohQuiz,
52
+ ChigazoGrahamsQuiz,
53
+ AmiyahJonesQuiz,
54
LjMcwilliamsQuiz,
55
];
56
0 commit comments