Home

Issue: 1105

Please Help! router-view vs nuxt component

[issue link]

Hello there,

I am using the “nuxt” component to embed route components in a layout but it seems that events from v-on are not being listened to.

This is something that is expected to work but doesn’t:

<nuxt v-on:some-event="doSomething()" />

Should I be using <router-view> instead? When using <router-view>, events are picked up but there is an error in the console that reads

[Vue warn]: Error in mounted hook: "TypeError: Cannot set property '$loading' of undefined"

(found in <Root>)

Thank you very much! 😄

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