angular - Nested stringed son, rendering to the Angular2 HTML -


i have object called module

modules: module[];     this.modules = [{ id: "123", title: "newstate", organiser: "{"id":"2133","profileverified":false}"}] 

i can use in way this

<div *ngfor="item in modules">     {{item.title}}</div> 

i cannot use {{module.organiser.id}} assume because organiser stringfyed json. how can more forward.

you put organiser object between quotes. making string instead of object. should follows:

   this.modules = [{ id: "123", title: "newstate", organiser: {"id":"2133","profileverified":false}}] 

Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -