⚠️ You are looking at the english version of the page. Help us translate it here.
Want to take a look at our new docs? Our new docs are now in beta. Have fun!

$nuxt: The NuxtJS helper

$nuxt is a helper designed to improve user experience.

  • isOffline
    • Type: Boolean
    • Description: true when the user's internet connection becomes offline
  • isOnline
    • Type: Boolean
    • Description: Opposite of isOffline

Example:

layouts/default.vue:

<template>
  <div>
    <div v-if="$nuxt.isOffline">You are offline</div>
    <nuxt />
  </div>
</template>

Contributors

Contribution for this page is now closed. If you would like to contribute please check out our new docs are now in beta. Have fun!

Platinum Sponsors

StoryblokMoovweb Support Us