Angular 2. Loop of array inside object using ngFor

Viewed 3566

I have next structure of a component data:

enter image description here

I want to print a list of assignedCards within component's view using *ngFor. I do this possible:

<div *ngFor="#item of mission.assignedCards" class="b-progress-bar__item m-progress-bar__item_completed">
<div class="b-progress-bar__inner">{{item}}</div>
</div>

But it falls with an exception:

enter image description here

If i test mission value, it says me, that mission is an object.

enter image description here

So, i'd like to access assignedCards array inside mission object and make a loop of it.

1 Answers
Related