Skip to content
Snippets Groups Projects
Commit 5964139c authored by Adam Procter's avatar Adam Procter
Browse files

rendering out new spaces to the browser

parent 2e986e0a
Branches
No related tags found
No related merge requests found
{
"name": "kinopio-api",
"version": "0.1.0",
"version": "0.0.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
<template>
<div class="hello">
<p>Something</p>
<h1>{{ new_space.name }}</h1>
<p>
<a :href="'https://kinopio.club/' + new_space.url">{{
new_space.name
}}</a>
</p>
</div>
</template>
<script>
export default {
name: 'SampleComponent',
props: {
new_space: Object,
},
}
</script>
......
<template>
<div class="home">
<SampleComponent />
<SampleComponent
v-for="new_space in new_spaces"
:key="new_space.id"
:new_space="new_space"
/>
</div>
</template>
......@@ -25,6 +29,7 @@ export default {
axios
.get('https://api.kinopio.club/space/new-spaces')
.then((response) => {
this.new_spaces = response.data
console.log('new_spaces:', response.data)
})
.catch((error) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment