2023-12-26 18:28:43 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-07-03 10:06:06 +00:00
|
|
|
<p>In <i>nuxt.config</i> file, add the <i>@primevue/nuxt-module</i> to the modules section and define <i>primevue</i> object for the configuration of the module.</p>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
|
2023-12-26 18:28:43 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
|
|
|
basic: `
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
modules: [
|
2024-06-12 22:42:21 +00:00
|
|
|
'@primevue/nuxt-module'
|
2023-12-26 18:28:43 +00:00
|
|
|
],
|
|
|
|
primevue: {
|
2024-07-03 10:06:06 +00:00
|
|
|
/* Configuration */
|
2023-12-26 18:28:43 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|