Pinafore-Web-Client-Frontend/routes/_components/HiddenFromSSR.html

13 lines
218 B
HTML
Raw Normal View History

2018-01-21 05:30:49 +01:00
<div class="{{hidden ? 'hidden' : ''}}">
<slot></slot>
</div>
<script>
export default {
data: () => ({
hidden: true
}),
oncreate () {
this.set({hidden: !process.browser})
}
}
</script>