⚠️ You are looking at the english version of the page. Help us translate it here.
Ingin melihat dokumen baru kami? Kami dokumen baru sekarang dalam versi beta. Selamat bersenang-senang!

The key Property

Set the key property of internal <router-view> component

  • Type: String or Function

The key property is propagated into <router-view>, which is useful to make transitions inside a dynamic page and different route. Different keys result in rerendering of page components.

There are several ways to set the key. For more details, please refer to the nuxtChildKey prop in the nuxt component.

export default {
  key(route) {
    return route.fullPath
  }
}

Kontributor

Kontribusi untuk halaman ini sekarang ditutup. Jika Anda ingin berkontribusi, silakan periksa dokumen baru sekarang dalam versi beta. Selamat bersenang-senang!

Platinum Sponsors

Storyblok Support Us