Nuxt app.config

app.config.tsからデータの取得ができます。

URI app-config://{path}
Path

app.config.ts のプロパティ パス

Example query://basic

ViewState

Retrieve and Update

Src 属性に app-config://{path} を指定して、 app.config.ts からオブジェクトを取得します。

vue
<template>
 <ViewState
  v-slot="example"
  src="app-config://usebootstrap/navigations/default"
 >
  <ul>
   <li
    v-for="item in example.data"
    :key="item"
   >
    {{ item.name }}
   </li>
  </ul>
 </ViewState>
</template>
  • Getting Started
  • Components
  • Forms
  • Layout
  • Content
  • Helpers
  • Utilities
  • About