pinafore/routes/_components/Layout.html
2018-02-12 22:35:01 -08:00

26 lines
485 B
HTML

<:Window bind:online />
<Nav :page />
<div class="container">
<main>
<slot></slot>
</main>
</div>
<script>
import Nav from './Nav.html';
import VirtualListContainer from './virtualList/VirtualListContainer.html'
import { store } from '../_store/store'
export default {
oncreate() {
this.observe('online', online => {
this.store.set({online: online})
})
},
components: {
VirtualListContainer,
Nav
},
store: () => store
}
</script>