Static GitHub Issues

[785] How to write nested layout?

prev: how to trigger error.vue (from layouts) with self made error ?
next: nuxt.js version 0.10.x problems with ava testing

I code like this:

// layout_0.vue
<template>
  <h1>Hello World</h1>
</template>
// layout_1.vue
<template>
  <nuxt />
  <h2>Hello China</h2>
</template>
<script>
  export default {
    layout: 'layout_0'
  };
</script>

But it doesn't work.

<!--cmty--><!--cmty_prevent_hook-->
<div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c673">#c673</a>)</em></sub></div>