1 files added
2 files modified
| | |
| | | <template> |
| | | <ul></ul> |
| | | <ul> |
| | | <learning-resource v-for="res in storedResouces" |
| | | :key="res.id" |
| | | :title="res.title" |
| | | :description="res.description" |
| | | :link="res.link" |
| | | > |
| | | </learning-resource> |
| | | </ul> |
| | | </template> |
| | | |
| | | <script> |
| | | import LearningResource from './components/learning-resource/LearningResource.vue'; |
| | | |
| | | export default { |
| | | components:{ |
| | | LearningResource: LearningResource, |
| | | }, |
| | | data(){ |
| | | return { |
| | | storedResouces:[ |
| | | storedResouces: [ |
| | | { |
| | | id:'official-guide', |
| | | title: 'Official Guide', |
New file |
| | |
| | | <template> |
| | | <li> |
| | | <div> |
| | | <header> |
| | | <h3>{{ title }}</h3> |
| | | <button>Delete</button> |
| | | </header> |
| | | </div> |
| | | <p>{{ description }}</p> |
| | | <nav> |
| | | <a :href="link">View Resource</a> |
| | | </nav> |
| | | </li> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props: ['title', 'description', 'link'] |
| | | } |
| | | </script> |
| | |
| | | import { createApp } from 'vue'; |
| | | |
| | | createApp({}).mount('#app'); |
| | | import App from './App.vue'; |
| | | |
| | | createApp(App).mount('#app'); |