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 135ff06 commit 087f443Copy full SHA for 087f443
src/web/src/pages/CoursePage.vue
@@ -22,6 +22,9 @@
22
<p v-html="transformed" />
23
</b-col>
24
</b-row>
25
+ <h4 v-for="item in instructorList" :key="item.id">
26
+ {{ item }}
27
+ </h4>
28
<b-row>
29
<b-col class="mb-4">
30
@@ -106,8 +109,18 @@ export default {
106
109
text: this.$route.params.course,
107
110
},
108
111
],
112
+ instructorList:[]
113
};
114
115
+ mounted(){
116
+ const instructors = new Set();
117
+ this.courseObj.sections.forEach(section => {
118
+ section.sessions.forEach(session => {
119
+ instructors.add(session.instructor);
120
+ });
121
122
+ this.instructorList = Array.from(instructors);
123
+ },
124
methods: {
125
generateRequirementsText,
126
0 commit comments