Last active
February 28, 2020 14:22
-
-
Save damianof/c812bbaae56ae608367760e815fb2c68 to your computer and use it in GitHub Desktop.
Chapter 1 - Home view 2 - updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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