commit | author | age
|
86991c
|
1 |
<template> |
CM |
2 |
<ul> |
|
3 |
<learning-resource |
|
4 |
v-for="res in resources" |
|
5 |
:key="res.id" |
ada7d2
|
6 |
:id="res.id" |
86991c
|
7 |
:title="res.title" |
CM |
8 |
:description="res.description" |
|
9 |
:link="res.link" |
|
10 |
> |
|
11 |
</learning-resource> |
|
12 |
</ul> |
|
13 |
</template> |
|
14 |
|
|
15 |
<script> |
|
16 |
import LearningResource from './LearningResource.vue'; |
|
17 |
|
|
18 |
export default { |
|
19 |
components: { |
|
20 |
LearningResource: LearningResource, |
|
21 |
}, |
2c19b5
|
22 |
inject: ['resources'], |
86991c
|
23 |
}; |
CM |
24 |
</script> |
|
25 |
|
|
26 |
<style> |
|
27 |
ul { |
|
28 |
list-style: none; |
|
29 |
margin: 0; |
|
30 |
padding: 0; |
|
31 |
margin: auto; |
|
32 |
max-width: 40rem; |
|
33 |
} |
|
34 |
</style> |