This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-08 13:58:30 +01:00
|
|
|
<template>
|
|
|
|
<ul>
|
|
|
|
<learning-resource
|
|
|
|
v-for="resource in storedResources"
|
|
|
|
:key="resource.id"
|
2021-02-08 20:20:39 +01:00
|
|
|
:id="resource.id"
|
2021-02-08 13:58:30 +01:00
|
|
|
:title="resource.title"
|
|
|
|
:description="resource.description"
|
|
|
|
:link="resource.link"
|
|
|
|
></learning-resource>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import LearningResource from './LearningResource';
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
LearningResource
|
|
|
|
},
|
2021-02-08 15:15:01 +01:00
|
|
|
inject: ['storedResources']
|
2021-02-08 13:58:30 +01:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: auto;
|
|
|
|
max-width: 40rem;
|
|
|
|
}
|
|
|
|
</style>
|