$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

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!

Platinum Sponsors

Storyblok Support Us