commit | author | age | ||
32b599 | 1 | <template> |
CM | 2 | <li> |
3 | <h3>{{ topicName }}</h3> | |
4 | <p>{{ description }}</p> | |
501f0d | 5 | <button @click="selectTopic(id)">Learn More</button> |
32b599 | 6 | </li> |
CM | 7 | </template> |
8 | ||
9 | <script> | |
10 | export default { | |
501f0d | 11 | inject: ['selectTopic'], |
32b599 | 12 | props: ['id', 'topicName', 'description'], |
CM | 13 | emits: ['select-topic'], |
14 | }; | |
15 | </script> |