Skip to content

Instantly share code, notes, and snippets.

@damianof
Last active February 28, 2020 14:22
Show Gist options
  • Select an option

  • Save damianof/c812bbaae56ae608367760e815fb2c68 to your computer and use it in GitHub Desktop.

Select an option

Save damianof/c812bbaae56ae608367760e815fb2c68 to your computer and use it in GitHub Desktop.
Chapter 1 - Home view 2 - updated
<template>
<div class="home">
<ItemsListComponent :items="items" />
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
import ItemsListComponent from '@/components/items/ItemsList.component.vue'
@Component({
components: {
ItemsListComponent
}
})
export default class Home extends Vue {
private items: any[] = [{
id: 1,
name: 'Item 1',
selected: false
}, {
id: 2,
name: 'Item 2',
selected: false
}, {
id: 3,
name: 'Item 3',
selected: false
}]
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment