14 lines
274 B
Vue
14 lines
274 B
Vue
|
<template>
|
||
|
<li>
|
||
|
<h3>{{ topicName }}</h3>
|
||
|
<p>{{ description }}</p>
|
||
|
<button @click="$emit('select-topic', id)">Learn More</button>
|
||
|
</li>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: ['id', 'topicName', 'description'],
|
||
|
emits: ['select-topic'],
|
||
|
};
|
||
|
</script>
|