Home

Issue: 1617

Classes set on <nuxt /> component in layout are sometimes lost

[issue link]

My default.vue layout currently looks something like this:

<template>
  <main-menu />
  <nuxt class="view" />
</template>

At first, the .view class gets set on whatever page component is rendered in the <nuxt /> container, but when I start changing routes through <nuxt-link> tags, this class gets subsequently lost.

This doesn’t happen when working with vue-router directly, from which I am currently porting a project to Nuxt.js, so it looks like a Nuxt.js bug to me.

This question is available on Nuxt.js community (#c1443)