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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -