I'm struggling to properly display nested arrays in Vue JS. Below is a snippet of my JSON data:
{
"id": 1,
"slug": "test-page",
"banner": {
"title": "banner title",
"subTitle": "my sub title",
"hasSubTitle": false,
"hasClass": "jumbotron-houses jumbotron-page"
},
"pageTitle": "Test Page",
"pageDescription": "My Page Description",
"content": "<h1>test</h1>"
}
My goal is to display the banner title along with each element in the banner object. I've attempted the following code:
{{ page.banner['title'] }}
However, this does not seem to work as expected. I also tried:
{{ page.banner[0] }}
If anyone has any insight on what could be missing or how to correctly achieve this, I would greatly appreciate it!