I have an Angular 12 application and am getting back a complex type, which I have mapped to interfaces.
When I console.log
this object, I see the values I am expecting, however trying to log the members array here comes back as undefined.
My Angular code is:
this.conferenceService
.getConferenceBridge(this.selectedConferenceBridgeBoxnum)
.subscribe((cb) => {
this.conferenceBridge = cb;
console.log(cb.members); <--- says it's undefined
}
The interface has "members" as an array.
members: ConferenceBridgeMember[];
Why is this undefined here? This isn't a parsing problem as I can see this array after the .get
and it looks fine.