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
Post a Comment