Created
November 10, 2020 12:04
-
-
Save Kiruha01/3928c7970f3ee46f5e8203b048720485 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON: struct = [{"term": 1, "subjects": [ | |
{"name": "...", | |
"lecturers": [ | |
{"name": ..., id: ...} ... | |
] | |
] | |
... | |
}] | |
// main component: | |
<Term v-for="term in struct" | |
v-bind:name="term.term" v-bind:subjects=term.subjects /> | |
// Term component | |
<COLLAPSE_ITEM name=name> | |
// your code for collapse item | |
<Subject v-for="subject in subjects" | |
v-bind:name="subject.name" v-bind:lecturers=subject.lecturers /> | |
</COLLAPSE_ITEM> | |
......... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment