Hi ,
This way you should be able to access,
public test = {
        "error": null,
        "document": {
            "title": "Hello World Angular",
            "heading": "subject to changes"
        },
        "versions": [
            {
                "attributes": {
                    "sequence": "1",
                    "versionNumber": "1.6",
                    "id": "A00100"
                },
                "contentElements": [
                    {
                        "contentType": "BASE",
                        "mediaType": "text/xml",
                        "fileName": null,
                        "size": 779,
                        "content": "This is content"
                    },
                    {
                        "contentType": "NOTELOG",
                        "mediaType": "text/plain",
                        "fileName": null,
                        "size": 29,
                        "content": "Content2"
                    }
                ]
            }
        ]
    }
this.test.versions.forEach((element)=>{
                console.log('ELEMENT ', element.contentElements);

            })
Regards.

El mar., 23 jun. 2020 a las 12:09, Sandeep Shukla (<sandeep.shu...@gmail.com>)
escribió:

> I am new in angular, I would like to display the values in html ,
> {
>     "error": null,
>     "document": {
>         "title": "Hello World Angular",
>         "heading": "subject to changes"
>     },
>     "versions": [
>         {
>             "attributes": {
>                 "sequence": "1",
>                 "versionNumber": "1.6",
>                 "id": "A00100"
>             },
>             "contentElements": [
>                 {
>                     "contentType": "BASE",
>                     "mediaType": "text/xml",
>                     "fileName": null,
>                     "size": 779,
>                     "content": "This is content"
>                 },
>                 {
>                     "contentType": "NOTELOG",
>                     "mediaType": "text/plain",
>                     "fileName": null,
>                     "size": 29,
>                     "content": "Content2"
>                 }
>             ]
>         }
>     ]
> }
> I have difficulty in accessing the values from versions onwards.
>
> Regards
> Sandeep
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/aa686158-6907-458c-9baa-9bb62633e7e9o%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/aa686158-6907-458c-9baa-9bb62633e7e9o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*Luis Alexander Mejías Aular.*

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CACXfMfbjGmq8E0cXS-q3h9_rF%3Dwbi_NpO-MSZdmiJOLhFWTAfw%40mail.gmail.com.

Reply via email to