Nuxt/examples/no-ssr/pages/index.vue

18 lines
329 B
Vue
Raw Normal View History

2017-08-24 10:38:53 +00:00
<template>
<div class="page">
<h1>Home</h1>
<NoSsr placeholder="Loading...">
2017-08-24 10:38:53 +00:00
<h2>This part is rendered on the client-side only</h2>
</NoSsr>
<NoSsr>
2017-08-24 10:38:53 +00:00
<p><code>placeholder</code> prop is optional</p>
</NoSsr>
2017-08-24 10:38:53 +00:00
</div>
</template>
<style scoped>
.no-ssr-placeholder {
color: #41b883;
}
</style>