Just getting started with angular and tackling the challenge of creating a nested form. I'm struggling to access controls for certain fields based on the JSON structure provided below, specifically having trouble with the assetsList -> description section.
data = {
headline: [
{
language: 'en',
headlineText: 'example headline',
},
],
bodyText: [
{
language: 'en',
bodyText: 'example bodytext',
},
],
location: {
name: 'mkontheway',
openingHours: [
{
day: 'Mon-frd',
timing: '10.00PM-9AM',
},
],
address: {
postCode: 'test',
country: 'test',
},
},
assetsList: [
{
description: [
{
language: 'En',
text: 'Sports News Updated',
},
],
assetType: 'Description',
assetLink: 'NewsLink',
filePath: 'Not yet fill',
},
],
};
https://i.sstatic.net/zSkfO.png
I have created a Stackblitz showcasing the issue. Any help in resolving this error would be greatly appreciated!