I have a Nuxt project of listing booking.
I have done all my API calls and configuration in index.js
in the store
folder. I would link to display the listing gotten from the API call on my listing.vue
page.
How do I print my retrieved data or make my index.js
accessible anywhere in the app?
package.json
{
"name": "lisngbook",
"version": "1.0.0",
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/axios": "^5.13.6",
"core-js": "^3.9.1",
"nuxt": "^2.15.3",
},
"devDependencies": {
"@nuxtjs/moment": "^1.6.1"
},
{{ property.description }}
but nothing is displaying 2- Whenever i make change my project ", especially the script" my website always gives an error message of " can not read properties on undefine (reading 0) .at this point I need to re-run the project one more time. but I refresh the page it will still do that – New Way Dec 30 '22 at 16:58