Solution 1:

There are 2 key notes here:

  1. Objects logged in the Javascript console are "live", so expanding them shows the current contents of the object. Content.list was empty when you first called console.log(). Then data was updated and hence on console too. See issue

In order to see real data I prefer this:

console.log(JSON.parse(JSON.stringify(this.bsModalRef)));
  1. Seems there is issue with bsModalRef. You can access content via:

setTimeout(() => { console.log(this.bsModalRef.content), 0});

But it is a workaound. You should report this to ngx-bootstrap repository.