File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11export default defineAppConfig ( {
2- myLayer : {
3- name : 'My amazing Nuxt layer (overwritten)'
4- }
5- } )
2+ attributeContent : {
3+ name : " Nuxt Attribute Content (overwritten)" ,
4+ } ,
5+ } ) ;
Original file line number Diff line number Diff line change 11export default defineAppConfig ( {
2- myLayer : {
3- name : 'Hello from Nuxt layer'
4- }
5- } )
2+ attributeContent : {
3+ name : " Nuxt Attribute Content" ,
4+ } ,
5+ } ) ;
66
7- declare module ' @nuxt/schema' {
7+ declare module " @nuxt/schema" {
88 interface AppConfigInput {
9- myLayer ?: {
9+ attributeContent ?: {
1010 /** Project name */
11- name ?: string
12- }
11+ name ?: string ;
12+ } ;
1313 }
1414}
Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- const { myLayer } = useAppConfig ()
2+ const { attributeContent } = useAppConfig ();
33 </script >
44
55<template >
66 <div >
77 <h1 >Hello World!</h1 >
8- <pre >{{ myLayer }}</pre >
8+ <pre >{{ attributeContent }}</pre >
99 </div >
1010</template >
You can’t perform that action at this time.
0 commit comments