Farshad Fahimi
Farshad Fahimi
NNuxt
Created by Farshad Fahimi on 9/7/2024 in #❓・help
use native parameters of nuxt content in component
I have a simple md file with some native poarameters and some extra params I enject them my self like below
title: 'this is title'
masterName: 'John Doe'
masterImage: '/path/to/img/john.png'
title: 'this is title'
masterName: 'John Doe'
masterImage: '/path/to/img/john.png'
this props is global and I need to use them in multiple components. I'm using useState to store the data and use them in the components. I want to know, nuxt content have a way to access this params in all components. for example a composeable to access this data
1 replies