Skip to content

Instantly share code, notes, and snippets.

@RemeJuan
Last active March 23, 2018 12:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RemeJuan/ed1ca6c428c56fea57e3332051432e19 to your computer and use it in GitHub Desktop.
Save RemeJuan/ed1ca6c428c56fea57e3332051432e19 to your computer and use it in GitHub Desktop.
<template>
<div>
<header-bar></header-bar>
<main>
<search-bar :submit="search" :term="searchTerm"></search-bar>
<list-data v-for="item in list" :event="item"></list-item>
</main>
<footer-bar></footer-bar>
</div>
</template>
<script>
import Vue from 'vue';
import { Search } from './components';
import { Header, Footer, List } from '~/shared';
import './styles.scss';
export default {
name: 'Events',
components: {
'header-bar': Header,
'search-bar': Search,
'list-data': List,
'footer-bar': Footer,
},
data() {
return {
data: [],
searchTerm: {},
}
},
created() {
// API/Service calls would go here
return {
data: [
{},
{}
],
};
},
methods: {
search() {
// Search method written here
},
}
};
</script>
@dashmug
Copy link

dashmug commented Jan 20, 2017

Typo on <search-bar :submit="search" :term="searchTerm"></serach-bar>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment