HI @ye-will
You can this this.$nuxt.error({ statusCode, message }) inside any Vue components instances on client-side, or from outside of components, you can use:
``js
window.onNuxtReady(() => {
window.$nuxt.error({ statusCode, message })
})
````
Example, go to https://nuxtjs.org and open the browser console, then write$nuxt.error({ message: 'Hello', statusCode: 404 })` and press enter :)
Awesome, thx! @Atinux
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
HI @ye-will
You can this
this.$nuxt.error({ statusCode, message })inside any Vue components instances on client-side, or from outside of components, you can use:``
js window.onNuxtReady(() => { window.$nuxt.error({ statusCode, message }) }) ```` Example, go to https://nuxtjs.org and open the browser console, then write$nuxt.error({ message: 'Hello', statusCode: 404 })` and press enter :)